11<script setup lang="ts">
2- import { ref , onMounted , nextTick , onBeforeUnmount } from ' vue'
2+ import { ref , onMounted , nextTick , onBeforeUnmount , computed } from ' vue'
33import Titlebar from ' ./components/Titlebar.vue' ;
44import { invokeCommand } from ' ./utils' ;
55import { event } from ' @tauri-apps/api' ;
@@ -9,7 +9,7 @@ import { useI18n } from 'vue-i18n';
99const { t } = useI18n ();
1010
1111const managerMode = ref (false );
12- const navItems = ref ( [
12+ const navItems = computed (() => [
1313 {
1414 name: t (' manage_toolkit' ),
1515 showDot: ref (false ),
@@ -53,7 +53,7 @@ async function updateDots() {
5353
5454 event .listen (' toolkit:update-available' , (event ) => {
5555 console .log (" toolkit update available: " , event .payload );
56- navItems .value [0 ].showDot = true ;
56+ navItems .value [0 ].showDot . value = true ;
5757 });
5858}
5959
@@ -81,7 +81,7 @@ onBeforeUnmount(() => {
8181 <li v-for =" (item, index) in navItems" :key =" index" class =" nav-item"
8282 :class =" { active: selectedIndex === index }" @click =" selectNav(index)" ref =" navRefs" >
8383 {{ item.name }}
84- <span class =" red-dot" v-if =" item.showDot" ></span >
84+ <span class =" red-dot" v-if =" item.showDot.value " ></span >
8585 </li >
8686 </ul >
8787 <div class =" underline" :style =" underlineStyle" ></div >
@@ -121,6 +121,28 @@ main {
121121 margin-top : 10vh ;
122122 overflow : hidden ;
123123}
124+
125+ .info-label {
126+ --uno : " c-regular" ;
127+ font-weight : bold ;
128+ font-size : clamp (8px , 2.6vh , 22px );
129+ margin-inline : 1vw ;
130+ }
131+
132+ .sub-info-label {
133+ --uno : " c-secondary" ;
134+ font-size : clamp (6px , 2.2vh , 20px );
135+ margin-inline : 1vw ;
136+ }
137+
138+ .footer-label {
139+ --uno : c-secondary;
140+ position : fixed ;
141+ font-size : 14px ;
142+ text-align : center ;
143+ width : 100% ;
144+ bottom : 3vh ;
145+ }
124146 </style >
125147
126148<style scoped>
0 commit comments