generated from Seekra/repository-template
feat(settings): show first-level sections in the sidebar
This commit is contained in:
@@ -41,6 +41,15 @@ onMounted(async () => {
|
|||||||
</header>
|
</header>
|
||||||
<LeftSidebarLayout class="layout">
|
<LeftSidebarLayout class="layout">
|
||||||
<template #sidebar>
|
<template #sidebar>
|
||||||
|
<ul class="sidebar-sections-list">
|
||||||
|
<li v-for="section in settings">
|
||||||
|
<button class="sidebar-section button">
|
||||||
|
<RouterLink :to="`/settings/${section.name}`" class="link button-link">
|
||||||
|
{{ t(section.i18n) }}
|
||||||
|
</RouterLink>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
<div>
|
<div>
|
||||||
<div v-if="!settingsLoaded">
|
<div v-if="!settingsLoaded">
|
||||||
@@ -68,4 +77,20 @@ onMounted(async () => {
|
|||||||
.header h1 {
|
.header h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-sections-list {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-section {
|
||||||
|
--padding: 0.8em;
|
||||||
|
border-radius: var(--padding);
|
||||||
|
padding: var(--padding);
|
||||||
|
margin-bottom: 4px;
|
||||||
|
width: 100%;
|
||||||
|
text-align: start;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user