mirror of
https://github.com/modrinth/code.git
synced 2026-09-03 13:36:48 +00:00
fix: migrate server instance header to new PageHeader
This commit is contained in:
@@ -2,21 +2,19 @@
|
|||||||
<div class="w-full flex flex-col gap-4" :class="{ 'mt-4': isNuxt }">
|
<div class="w-full flex flex-col gap-4" :class="{ 'mt-4': isNuxt }">
|
||||||
<PageHeader :title="props.name || props.fallbackName" :header-class="props.headerClass">
|
<PageHeader :title="props.name || props.fallbackName" :header-class="props.headerClass">
|
||||||
<template #leading>
|
<template #leading>
|
||||||
<div class="flex size-16 shrink-0 items-center justify-center">
|
<ButtonStyled circular size="large">
|
||||||
<ButtonStyled circular size="large">
|
<button
|
||||||
<button
|
v-tooltip="props.backLabel"
|
||||||
v-tooltip="props.backLabel"
|
type="button"
|
||||||
type="button"
|
:aria-label="props.backLabel"
|
||||||
:aria-label="props.backLabel"
|
@click="router.push(props.backHref)"
|
||||||
@click="router.push(props.backHref)"
|
>
|
||||||
>
|
<LeftArrowIcon aria-hidden="true" />
|
||||||
<LeftArrowIcon aria-hidden="true" />
|
</button>
|
||||||
</button>
|
</ButtonStyled>
|
||||||
</ButtonStyled>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #metadata>
|
<template v-if="headerMetadata.length" #metadata>
|
||||||
<PageHeaderMetadata>
|
<PageHeaderMetadata>
|
||||||
<PageHeaderMetadataItem
|
<PageHeaderMetadataItem
|
||||||
v-for="item in headerMetadata"
|
v-for="item in headerMetadata"
|
||||||
@@ -29,7 +27,7 @@
|
|||||||
</PageHeaderMetadata>
|
</PageHeaderMetadata>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #actions>
|
<template v-if="props.actions.length" #actions>
|
||||||
<PageHeaderActions>
|
<PageHeaderActions>
|
||||||
<template v-for="action in props.actions" :key="action.id">
|
<template v-for="action in props.actions" :key="action.id">
|
||||||
<JoinedButtons
|
<JoinedButtons
|
||||||
|
|||||||
Reference in New Issue
Block a user