change header scroll-behavior

This commit is contained in:
2026-02-17 20:45:43 +02:00
parent 579e655981
commit 50fae1396d
2 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<v-app-bar color="blue" scroll-behavior="elevate" scroll-threshold="20" :height="100" image="/static/bck-2.webp">
<v-app-bar color="blue" scroll-behavior="collapse" scroll-threshold="50" :height="100" image="/static/bck-2.webp">
<!-- <v-app-bar-nav-icon variant="text" @click.stop="drawer = !drawer"></v-app-bar-nav-icon> -->
<template v-slot:prepend>
<v-avatar class="ml-3" size="66" rounded="0">
+15 -12
View File
@@ -1,5 +1,5 @@
<template>
<v-app-bar color="primary" scroll-behavior="elevate" scroll-threshold="20" :height="100" image="/static/bck-1.webp">
<v-app-bar color="primary" scroll-behavior="collapse" scroll-threshold="50" :height="100" image="/static/bck-1.webp">
<!-- <v-app-bar-nav-icon variant="text" @click.stop="drawer = !drawer"></v-app-bar-nav-icon> -->
<template v-slot:prepend>
<router-link to="/manage">
@@ -11,17 +11,20 @@
<v-app-bar-title>
<router-link to="/manage">{{ l.workshop }}</router-link>
</v-app-bar-title>
<v-btn to="/" icon="mdi-seesaw" v-tooltip="l.playground"></v-btn>
<v-menu>
<template v-slot:activator="{ props }">
<v-btn icon="mdi-plus" variant="text" v-bind="props"></v-btn>
</template>
<v-list>
<v-list-item to="/manage/game-objects/add">{{ l.createGameObject }}</v-list-item>
<v-list-item to="/manage/scenarios/add">{{ l.createScenario }}</v-list-item>
<v-list-item to="/manage/games/add">{{ l.createGame }}</v-list-item>
</v-list>
</v-menu>
<template v-slot:append>
<v-btn to="/" icon="mdi-controller" v-tooltip="l.playground"></v-btn>
<v-menu>
<template v-slot:activator="{ props }">
<v-btn icon="mdi-plus" variant="text" v-bind="props"></v-btn>
</template>
<v-list>
<v-list-item to="/manage/game-objects/add">{{ l.createGameObject }}</v-list-item>
<v-list-item to="/manage/scenarios/add">{{ l.createScenario }}</v-list-item>
<v-list-item to="/manage/games/add">{{ l.createGame }}</v-list-item>
</v-list>
</v-menu>
<CommonHeader></CommonHeader>
</template>
</v-app-bar>
<v-navigation-drawer class="bg-secondary" expand-on-hover rail>