mirror of
https://github.com/lanyeeee/bilibili-video-downloader.git
synced 2026-09-08 17:16:52 +08:00
style: 优化侧边导航栏样式
This commit is contained in:
+11
-10
@@ -60,12 +60,13 @@ onMounted(() => {
|
|||||||
<TitleBar />
|
<TitleBar />
|
||||||
|
|
||||||
<div v-if="store.config !== undefined" class="h-full w-full flex overflow-hidden select-none">
|
<div v-if="store.config !== undefined" class="h-full w-full flex overflow-hidden select-none">
|
||||||
<div class="flex flex-col box-border p-1 border-r-solid border-r-1 border-r-[#DADADA] bg-[#F9F9F9] flex-shrink-0">
|
<div
|
||||||
|
class="flex flex-col px-1 box-border border-r-solid border-r-1 border-r-[#DADADA] bg-[#F9F9F9] flex-shrink-0">
|
||||||
<n-tooltip placement="right" trigger="hover" :show-arrow="false">
|
<n-tooltip placement="right" trigger="hover" :show-arrow="false">
|
||||||
搜索
|
搜索
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<div
|
<div
|
||||||
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded py-1 my-1 px-2"
|
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded p-1 my-1"
|
||||||
@click="store.currentNavName = 'search'"
|
@click="store.currentNavName = 'search'"
|
||||||
:class="{ 'text-sky-5': store.currentNavName === 'search' }">
|
:class="{ 'text-sky-5': store.currentNavName === 'search' }">
|
||||||
<PhMagnifyingGlass :weight="store.currentNavName === 'search' ? 'fill' : 'regular'" size="28" />
|
<PhMagnifyingGlass :weight="store.currentNavName === 'search' ? 'fill' : 'regular'" size="28" />
|
||||||
@@ -77,7 +78,7 @@ onMounted(() => {
|
|||||||
收藏夹
|
收藏夹
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<div
|
<div
|
||||||
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded py-1 my-1 px-2"
|
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded p-1 my-1"
|
||||||
@click="store.currentNavName = 'fav'"
|
@click="store.currentNavName = 'fav'"
|
||||||
:class="{ 'text-sky-5': store.currentNavName === 'fav' }">
|
:class="{ 'text-sky-5': store.currentNavName === 'fav' }">
|
||||||
<PhStar :weight="store.currentNavName === 'fav' ? 'fill' : 'regular'" size="28" />
|
<PhStar :weight="store.currentNavName === 'fav' ? 'fill' : 'regular'" size="28" />
|
||||||
@@ -89,7 +90,7 @@ onMounted(() => {
|
|||||||
历史记录
|
历史记录
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<div
|
<div
|
||||||
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded py-1 my-1 px-2"
|
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded p-1 my-1"
|
||||||
@click="store.currentNavName = 'history'"
|
@click="store.currentNavName = 'history'"
|
||||||
:class="{ 'text-sky-5': store.currentNavName === 'history' }">
|
:class="{ 'text-sky-5': store.currentNavName === 'history' }">
|
||||||
<PhClock :weight="store.currentNavName === 'history' ? 'fill' : 'regular'" size="28" />
|
<PhClock :weight="store.currentNavName === 'history' ? 'fill' : 'regular'" size="28" />
|
||||||
@@ -101,7 +102,7 @@ onMounted(() => {
|
|||||||
追番追剧
|
追番追剧
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<div
|
<div
|
||||||
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded py-1 my-1 px-2"
|
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded p-1 my-1"
|
||||||
@click="store.currentNavName = 'bangumi_follow'"
|
@click="store.currentNavName = 'bangumi_follow'"
|
||||||
:class="{ 'text-sky-5': store.currentNavName === 'bangumi_follow' }">
|
:class="{ 'text-sky-5': store.currentNavName === 'bangumi_follow' }">
|
||||||
<PhHeart :weight="store.currentNavName === 'bangumi_follow' ? 'fill' : 'regular'" size="28" />
|
<PhHeart :weight="store.currentNavName === 'bangumi_follow' ? 'fill' : 'regular'" size="28" />
|
||||||
@@ -113,7 +114,7 @@ onMounted(() => {
|
|||||||
稍后再看
|
稍后再看
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<div
|
<div
|
||||||
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded py-1 my-1 px-2"
|
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded p-1 my-1"
|
||||||
@click="store.currentNavName = 'watch_later'"
|
@click="store.currentNavName = 'watch_later'"
|
||||||
:class="{ 'text-sky-5': store.currentNavName === 'watch_later' }">
|
:class="{ 'text-sky-5': store.currentNavName === 'watch_later' }">
|
||||||
<PhPlayCircle :weight="store.currentNavName === 'watch_later' ? 'fill' : 'regular'" size="28" />
|
<PhPlayCircle :weight="store.currentNavName === 'watch_later' ? 'fill' : 'regular'" size="28" />
|
||||||
@@ -127,7 +128,7 @@ onMounted(() => {
|
|||||||
<n-badge :value="store.uncompletedProgressesCount" :offset="[-7, 7]">
|
<n-badge :value="store.uncompletedProgressesCount" :offset="[-7, 7]">
|
||||||
<div
|
<div
|
||||||
ref="downloadButtonRef"
|
ref="downloadButtonRef"
|
||||||
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded py-1 my-1 px-2"
|
class="flex cursor-pointer hover:text-sky-5 hover:bg-gray-2/70 rounded p-1 my-1"
|
||||||
@click="store.currentNavName = 'download'"
|
@click="store.currentNavName = 'download'"
|
||||||
:class="{ 'text-sky-5': store.currentNavName === 'download' }">
|
:class="{ 'text-sky-5': store.currentNavName === 'download' }">
|
||||||
<PhDownload :weight="store.currentNavName === 'download' ? 'fill' : 'regular'" size="28" />
|
<PhDownload :weight="store.currentNavName === 'download' ? 'fill' : 'regular'" size="28" />
|
||||||
@@ -139,7 +140,7 @@ onMounted(() => {
|
|||||||
<n-tooltip placement="right" trigger="hover" :show-arrow="false">
|
<n-tooltip placement="right" trigger="hover" :show-arrow="false">
|
||||||
配置
|
配置
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<n-button text class="mt-auto py-1 px-2" @click="settingsDialogShowing = true">
|
<n-button text class="mt-auto p-1" @click="settingsDialogShowing = true">
|
||||||
<n-icon size="28">
|
<n-icon size="28">
|
||||||
<PhGearSix />
|
<PhGearSix />
|
||||||
</n-icon>
|
</n-icon>
|
||||||
@@ -150,7 +151,7 @@ onMounted(() => {
|
|||||||
<n-tooltip placement="right" trigger="hover" :show-arrow="false">
|
<n-tooltip placement="right" trigger="hover" :show-arrow="false">
|
||||||
日志
|
日志
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<n-button text class="py-1 px-2" @click="logDialogShowing = true">
|
<n-button text class="p-1" @click="logDialogShowing = true">
|
||||||
<n-icon size="28">
|
<n-icon size="28">
|
||||||
<PhClockCounterClockwise />
|
<PhClockCounterClockwise />
|
||||||
</n-icon>
|
</n-icon>
|
||||||
@@ -161,7 +162,7 @@ onMounted(() => {
|
|||||||
<n-tooltip placement="right" trigger="hover" :show-arrow="false">
|
<n-tooltip placement="right" trigger="hover" :show-arrow="false">
|
||||||
关于
|
关于
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<n-button text class="py-1 px-2 mb-2" @click="aboutDialogShowing = true">
|
<n-button text class="p-1 mb-1" @click="aboutDialogShowing = true">
|
||||||
<n-icon size="28">
|
<n-icon size="28">
|
||||||
<PhInfo />
|
<PhInfo />
|
||||||
</n-icon>
|
</n-icon>
|
||||||
|
|||||||
Reference in New Issue
Block a user