Skip to content

Commit d6a1faf

Browse files
authored
feat(applet): improve custom inspector page nav style (#477)
1 parent 22b47e8 commit d6a1faf

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/applet/src/components/basic/DevToolsHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const router = useVirtualRouter()
1010
</script>
1111

1212
<template>
13-
<div border="b base" class="h10 h40px flex items-center justify-between px3">
13+
<div border="b base" class="flex items-center justify-between px3">
1414
<div>
1515
<slot>
1616
<i class="i-ep:back cursor-pointer op70 text-base hover:op100" @click="router.push('/')" />

packages/applet/src/components/basic/Navbar.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ const router = useVirtualRouter()
1010
<li
1111
v-for="(item, index) in routes"
1212
:key="index"
13-
cursor-pointer hover:op100
14-
:style="{
15-
opacity: currentRoute.path === item.path ? 1 : 0.7,
16-
}"
13+
class="h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100"
14+
:class="currentRoute.path === item.path ? 'op-100 font-medium text-primary-400 border-primary-400' : 'border-transparent op-70'"
1715
@click="router.push(item.path)"
1816
>
1917
{{ item.name }}

0 commit comments

Comments
 (0)