Skip to content

Commit d6009a7

Browse files
committed
优化:在MainLayout.vue中更新按钮样式,将按钮的类名从'btn-ghost'更改为'btn-soft',并调整按钮布局以提升视觉效果。
1 parent f26affa commit d6009a7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

frontend/src/pages/MainLayout.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
to="/models"
1616
class="btn btn-sm"
1717
:class="[
18-
isModelPage ? 'btn-primary' : 'btn-ghost'
18+
isModelPage ? 'btn-primary' : 'btn-soft'
1919
]"
2020
>
2121
<span class="icon-[tabler--database] inline-block me-1.5 size-5"></span>
@@ -27,7 +27,7 @@
2727
to="/prompts"
2828
class="btn btn-sm"
2929
:class="[
30-
isPromptPage ? 'btn-primary' : 'btn-ghost'
30+
isPromptPage ? 'btn-primary' : 'btn-soft'
3131
]"
3232
>
3333
<span class="icon-[tabler--square-letter-p] inline-block me-1.5 size-5"></span>
@@ -99,25 +99,25 @@
9999
<div class="flex flex-col gap-2">
100100
<router-link
101101
to="/models"
102-
class="btn"
103-
:class="[
104-
isModelPage ? 'btn-primary' : 'btn-ghost'
105-
]"
102+
class="btn btn-xl justify-start w-full"
103+
:class="{ 'btn-primary': isModelPage }"
106104
data-overlay="#mobile-drawer"
107105
>
108-
<span class="icon-[tabler--database] inline-block me-1.5 size-5"></span>
109-
模型管理
106+
<div class="w-8 flex justify-center">
107+
<span class="icon-[tabler--database] size-6"></span>
108+
</div>
109+
<span>模型管理</span>
110110
</router-link>
111111
<router-link
112112
to="/prompts"
113-
class="btn"
114-
:class="[
115-
isPromptPage ? 'btn-primary' : 'btn-ghost'
116-
]"
113+
class="btn btn-xl justify-start w-full"
114+
:class="{ 'btn-primary': isPromptPage }"
117115
data-overlay="#mobile-drawer"
118116
>
119-
<span class="icon-[tabler--square-letter-p] inline-block me-1.5 size-5"></span>
120-
提示词管理
117+
<div class="w-8 flex justify-center">
118+
<span class="icon-[tabler--square-letter-p] size-6"></span>
119+
</div>
120+
<span>提示词管理</span>
121121
</router-link>
122122
<!-- 这里可以添加更多导航项 -->
123123
</div>

0 commit comments

Comments
 (0)