Merge branch 'fixes-roundup4' into shigusegubu-themes3
This commit is contained in:
commit
9d92fb45a2
7 changed files with 27 additions and 10 deletions
|
@ -54,6 +54,7 @@
|
|||
grid-template-columns: 1fr;
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: auto;
|
||||
grid-gap: 0.5em;
|
||||
|
||||
.popover-wrapper {
|
||||
box-sizing: border-box;
|
||||
|
|
|
@ -65,7 +65,7 @@ export default {
|
|||
'getClass',
|
||||
'getComponent',
|
||||
'doAction',
|
||||
'close'
|
||||
'outerClose'
|
||||
],
|
||||
components: {
|
||||
StatusBookmarkFolderMenu,
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
:tabindex="0"
|
||||
:disabled="buttonClass.disabled"
|
||||
:href="getComponent(button) == 'a' ? button.link?.(funcArg) || remoteInteractionLink : undefined"
|
||||
@click="doActionWrap(button, close)"
|
||||
@click="doActionWrap(button, outerClose)"
|
||||
>
|
||||
<FALayers>
|
||||
<FAIcon
|
||||
|
@ -84,10 +84,11 @@
|
|||
fixed-width
|
||||
/>
|
||||
</template>
|
||||
<template #content>
|
||||
<template #content="{close}">
|
||||
<StatusBookmarkFolderMenu
|
||||
v-if="button.name === 'bookmark'"
|
||||
:status="status"
|
||||
:close="() => { close(); outerClose() }"
|
||||
/>
|
||||
</template>
|
||||
</Popover>
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
:func-arg="funcArg"
|
||||
:get-class="getClass"
|
||||
:get-component="getComponent"
|
||||
:close="close"
|
||||
:outerClose="close"
|
||||
:do-action="doAction"
|
||||
/>
|
||||
<button
|
||||
|
|
|
@ -2,19 +2,22 @@ import { library } from '@fortawesome/fontawesome-svg-core'
|
|||
import { faChevronRight, faFolder } from '@fortawesome/free-solid-svg-icons'
|
||||
import { mapState } from 'vuex'
|
||||
|
||||
import Popover from '../popover/popover.vue'
|
||||
import Popover from 'src/components/popover/popover.vue'
|
||||
import StillImage from 'src/components/still-image/still-image.vue'
|
||||
|
||||
library.add(faChevronRight, faFolder)
|
||||
|
||||
const StatusBookmarkFolderMenu = {
|
||||
props: [
|
||||
'status'
|
||||
'status',
|
||||
'close'
|
||||
],
|
||||
data () {
|
||||
return {}
|
||||
},
|
||||
components: {
|
||||
Popover
|
||||
Popover,
|
||||
StillImage
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
.bookmark-folder-menu {
|
||||
--__horizontal-gap: 0.5em;
|
||||
--_still-image-label-visibility: hidden;
|
||||
|
||||
.emoji {
|
||||
width: var(--__line-height);
|
||||
height: var(--__line-height);
|
||||
}
|
||||
}
|
|
@ -1,22 +1,25 @@
|
|||
<template>
|
||||
<div class="dropdown-menu">
|
||||
<div class="dropdown-menu bookmark-folder-menu">
|
||||
<div
|
||||
v-for="folder in folders"
|
||||
:key="folder.id"
|
||||
class="menu-item dropdown-item -icon"
|
||||
class="menu-item dropdown-item -icon-double"
|
||||
>
|
||||
<button
|
||||
class="main-button"
|
||||
@click="toggleFolder(folder.id)"
|
||||
@click.stop="close"
|
||||
>
|
||||
<span
|
||||
class="input menu-checkbox -radio"
|
||||
:class="{ 'menu-checkbox-checked': status.bookmark_folder_id == folder.id }"
|
||||
/>
|
||||
{{ folder.name }}
|
||||
<StillImage :src="folder.emoji_url" class="emoji" />
|
||||
{{ ' ' + folder.name }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./status_bookmark_folder_menu.js"></script>
|
||||
<stlye src="./status_bookmark_folder_menu.scss" />
|
||||
|
|
Loading…
Add table
Reference in a new issue