* cleanup: remove dock options and make adaptive by default * cleanup: switch to css-based navbar * feat: add auto hide option
41 lines
1.0 KiB
Svelte
41 lines
1.0 KiB
Svelte
<script lang="ts">
|
|
import Tabs from '$lib/components/ui/layout/pages/Tabs.svelte'
|
|
import { t } from '$lib/translations.js'
|
|
import { fullCommunityName } from '$lib/util.svelte.js'
|
|
import type { PageData } from './$types.js'
|
|
|
|
interface Props {
|
|
data: PageData
|
|
children?: import('svelte').Snippet
|
|
}
|
|
|
|
let { data, children }: Props = $props()
|
|
|
|
let communityUrl = $derived(
|
|
`/c/${fullCommunityName(
|
|
data.community.community_view.community.name,
|
|
data.community.community_view.community.actor_id,
|
|
)}`,
|
|
)
|
|
</script>
|
|
|
|
<div class="flex flex-col gap-4 h-full">
|
|
<div
|
|
class="sticky mx-auto z-50 max-w-full min-w-0 flex items-center gap-2 top-6 lg:top-22"
|
|
>
|
|
<Tabs
|
|
routes={[
|
|
{
|
|
href: `${communityUrl}/settings`,
|
|
name: $t('routes.community.settings.settings'),
|
|
},
|
|
{
|
|
href: `${communityUrl}/settings/team`,
|
|
name: $t('routes.community.settings.team'),
|
|
},
|
|
]}
|
|
></Tabs>
|
|
</div>
|
|
{@render children?.()}
|
|
</div>
|