Skip to content

Commit

Permalink
feat(applet): improve custom inspector page nav style (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
reslear authored Jun 25, 2024
1 parent 22b47e8 commit d6a1faf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/applet/src/components/basic/DevToolsHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const router = useVirtualRouter()
</script>

<template>
<div border="b base" class="h10 h40px flex items-center justify-between px3">
<div border="b base" class="flex items-center justify-between px3">
<div>
<slot>
<i class="i-ep:back cursor-pointer op70 text-base hover:op100" @click="router.push('/')" />
Expand Down
6 changes: 2 additions & 4 deletions packages/applet/src/components/basic/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ const router = useVirtualRouter()
<li
v-for="(item, index) in routes"
:key="index"
cursor-pointer hover:op100
:style="{
opacity: currentRoute.path === item.path ? 1 : 0.7,
}"
class="h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100"
:class="currentRoute.path === item.path ? 'op-100 font-medium text-primary-400 border-primary-400' : 'border-transparent op-70'"
@click="router.push(item.path)"
>
{{ item.name }}
Expand Down

0 comments on commit d6a1faf

Please sign in to comment.