Skip to content

Commit

Permalink
move q-header
Browse files Browse the repository at this point in the history
  • Loading branch information
y-chan committed Nov 14, 2021
1 parent 1da38f2 commit fd3c3d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
32 changes: 15 additions & 17 deletions src/components/HeaderBar.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<template>
<q-header class="q-py-sm">
<q-toolbar>
<template v-for="button in headerButtons" :key="button.text">
<q-space v-if="button.text === null" />
<q-btn
v-else
unelevated
color="background-light"
text-color="display-dark"
class="text-no-wrap text-bold q-mr-sm"
:disable="button.disable.value"
@click="button.click"
>{{ button.text }}</q-btn
>
</template>
</q-toolbar>
</q-header>
<q-toolbar>
<template v-for="button in headerButtons" :key="button.text">
<q-space v-if="button.text === null" />
<q-btn
v-else
unelevated
color="background-light"
text-color="display-dark"
class="text-no-wrap text-bold q-mr-sm"
:disable="button.disable.value"
@click="button.click"
>{{ button.text }}</q-btn
>
</template>
</q-toolbar>
</template>

<script lang="ts">
Expand Down
4 changes: 3 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<menu-bar />

<q-layout reveal elevated>
<header-bar />
<q-header class="q-py-sm">
<header-bar />
</q-header>

<q-page-container>
<q-page class="main-row-panes bg-background">
Expand Down

0 comments on commit fd3c3d9

Please sign in to comment.