mirror of
https://github.com/romancm/gamebrary
synced 2024-11-23 19:53:14 +00:00
show slot dock regardless of screen size
This commit is contained in:
parent
d60960db78
commit
923ea78d81
1 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
<header class="d-flex align-items-center justify-content-between">
|
||||
<h1 class="d-none d-sm-block">{{ title }}</h1>
|
||||
|
||||
<slot />
|
||||
<b-button
|
||||
v-if="actionText"
|
||||
variant="primary"
|
||||
|
@ -12,15 +13,16 @@
|
|||
</b-button>
|
||||
|
||||
<portal to="dock">
|
||||
|
||||
<div class="d-sm-none" v-if="actionText">
|
||||
<slot />
|
||||
|
||||
<b-button
|
||||
variant="primary"
|
||||
@click="$emit('action')"
|
||||
>
|
||||
{{ actionText }}
|
||||
</b-button>
|
||||
|
||||
<slot />
|
||||
</div>
|
||||
</portal>
|
||||
</header>
|
||||
|
|
Loading…
Reference in a new issue