mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-24 14:24:47 +08:00
Add line to project navbar
This commit is contained in:
parent
5ef7628186
commit
e7d5ac0819
@ -22,7 +22,7 @@ function childRoute(route = ""): string {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<nav class="px-2 py-4 flex flex-wrap">
|
||||
<nav class="mt-3 mb-4 flex flex-wrap border-b-2 border-neutral-200 dark:border-neutral-800">
|
||||
<ProjectNavItem :to="childRoute()">
|
||||
{{ i18n.t("project.tabs.docs") }}
|
||||
</ProjectNavItem>
|
||||
|
@ -16,12 +16,12 @@ const selected = computed(() => {
|
||||
});
|
||||
|
||||
const clazz = computed(() => {
|
||||
return "py-1 rounded-sm border-b-3 " + (selected.value ? "border-[#004ee9] font-semibold " : "border-neutral-200 dark:border-neutral-700");
|
||||
return "px-2 py-1 inline-flex items-center " + (selected.value ? "border-b-2 border-[#004ee9] font-semibold " : "");
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="my-2 mr-5">
|
||||
<div class="mb-[-2px] mr-1">
|
||||
<router-link v-if="to" :to="to" :class="clazz">
|
||||
<slot></slot>
|
||||
</router-link>
|
||||
|
Loading…
Reference in New Issue
Block a user