mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-06-22 04:11:32 +10:00
feat(ui): add noWrapper option
This commit is contained in:
+7
-1
@@ -1,14 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col w-full min-h-screen bg-zinc-900">
|
<div v-if="!noWrapper" class="flex flex-col w-full min-h-screen bg-zinc-900">
|
||||||
<UserHeader class="z-50" />
|
<UserHeader class="z-50" />
|
||||||
<div class="grow flex">
|
<div class="grow flex">
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</div>
|
</div>
|
||||||
<UserFooter class="z-50" />
|
<UserFooter class="z-50" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex w-full min-h-screen bg-zinc-900" v-else>
|
||||||
|
<NuxtPage />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
const route = useRoute();
|
||||||
|
const noWrapper = !!route.query.noWrapper;
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
titleTemplate(title) {
|
titleTemplate(title) {
|
||||||
if (title) return `${title} | Drop`;
|
if (title) return `${title} | Drop`;
|
||||||
|
|||||||
Reference in New Issue
Block a user