2023-07-27 05:31:52 +00:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-07-11 01:13:11 +00:00
|
|
|
<template>
|
2023-05-20 01:12:18 +00:00
|
|
|
<div
|
2023-06-01 08:19:46 +00:00
|
|
|
:class="[$style.root, { [$style.paged]: isMainColumn, [$style.naked]: naked, [$style.active]: active, [$style.draghover]: draghover, [$style.dragging]: dragging, [$style.dropready]: dropready }]"
|
2020-07-11 01:13:11 +00:00
|
|
|
@dragover.prevent.stop="onDragover"
|
|
|
|
@dragleave="onDragleave"
|
|
|
|
@drop.prevent.stop="onDrop"
|
|
|
|
>
|
2022-07-03 11:30:58 +00:00
|
|
|
<header
|
2023-01-10 01:30:38 +00:00
|
|
|
:class="[$style.header]"
|
2020-07-11 01:13:11 +00:00
|
|
|
draggable="true"
|
|
|
|
@click="goTop"
|
|
|
|
@dragstart="onDragstart"
|
|
|
|
@dragend="onDragend"
|
|
|
|
@contextmenu.prevent.stop="onContextmenu"
|
2023-06-24 03:58:26 +00:00
|
|
|
@wheel="emit('headerWheel', $event)"
|
2020-07-11 01:13:11 +00:00
|
|
|
>
|
2023-05-26 01:48:49 +00:00
|
|
|
<svg viewBox="0 0 256 128" :class="$style.tabShape">
|
|
|
|
<g transform="matrix(6.2431,0,0,6.2431,-677.417,-29.3839)">
|
2023-05-26 02:31:39 +00:00
|
|
|
<path d="M149.512,4.707L108.507,4.707C116.252,4.719 118.758,14.958 118.758,14.958C118.758,14.958 121.381,25.283 129.009,25.209L149.512,25.209L149.512,4.707Z" style="fill:var(--deckBg);"/>
|
2023-05-26 01:48:49 +00:00
|
|
|
</g>
|
|
|
|
</svg>
|
2023-05-26 02:31:39 +00:00
|
|
|
<div :class="$style.color"></div>
|
2023-01-10 00:53:01 +00:00
|
|
|
<button v-if="isStacked && !isMainColumn" :class="$style.toggleActive" class="_button" @click="toggleActive">
|
2023-09-30 19:53:52 +00:00
|
|
|
<template v-if="active"><i class="ph-caret-up ph-bold ph-lg"></i></template>
|
|
|
|
<template v-else><i class="ph-caret-down ph-bold ph-lg"></i></template>
|
2020-07-11 01:13:11 +00:00
|
|
|
</button>
|
2023-01-10 00:53:01 +00:00
|
|
|
<span :class="$style.title"><slot name="header"></slot></span>
|
2023-06-01 09:07:30 +00:00
|
|
|
<svg viewBox="0 0 16 16" version="1.1" :class="$style.grabber">
|
|
|
|
<path fill="currentColor" d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
|
|
|
|
</svg>
|
2023-09-30 19:53:52 +00:00
|
|
|
<button v-tooltip="i18n.ts.settings" :class="$style.menu" class="_button" @click.stop="showSettingsMenu"><i class="ph-dots-three ph-bold ph-lg"></i></button>
|
2020-07-11 01:13:11 +00:00
|
|
|
</header>
|
2023-05-20 01:12:18 +00:00
|
|
|
<div v-if="active" ref="body" :class="$style.body">
|
2020-07-11 01:13:11 +00:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
2023-05-20 01:12:18 +00:00
|
|
|
</div>
|
2020-07-11 01:13:11 +00:00
|
|
|
</template>
|
|
|
|
|
2022-03-20 18:11:14 +00:00
|
|
|
<script lang="ts" setup>
|
2023-12-07 05:42:09 +00:00
|
|
|
import { onBeforeUnmount, onMounted, provide, watch, shallowRef, ref, computed } from 'vue';
|
2023-12-24 07:16:58 +00:00
|
|
|
import { updateColumn, swapLeftColumn, swapRightColumn, swapUpColumn, swapDownColumn, stackLeftColumn, popRightColumn, removeColumn, swapColumn, Column } from './deck-store.js';
|
2023-09-19 07:37:43 +00:00
|
|
|
import * as os from '@/os.js';
|
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
import { MenuItem } from '@/types/menu.js';
|
2022-03-20 18:11:14 +00:00
|
|
|
|
|
|
|
provide('shouldHeaderThin', true);
|
|
|
|
provide('shouldOmitHeaderTitle', true);
|
2023-01-03 01:46:56 +00:00
|
|
|
provide('forceSpacerMin', true);
|
2022-03-20 18:11:14 +00:00
|
|
|
|
|
|
|
const props = withDefaults(defineProps<{
|
|
|
|
column: Column;
|
|
|
|
isStacked?: boolean;
|
|
|
|
naked?: boolean;
|
2022-07-16 20:33:21 +00:00
|
|
|
menu?: MenuItem[];
|
2023-11-10 08:49:09 +00:00
|
|
|
refresher?: () => Promise<void>;
|
2022-03-20 18:11:14 +00:00
|
|
|
}>(), {
|
|
|
|
isStacked: false,
|
|
|
|
naked: false,
|
|
|
|
});
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-06-24 03:58:26 +00:00
|
|
|
const emit = defineEmits<{
|
|
|
|
(ev: 'headerWheel', ctx: WheelEvent): void;
|
|
|
|
}>();
|
|
|
|
|
2023-12-07 05:42:09 +00:00
|
|
|
const body = shallowRef<HTMLDivElement | null>();
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-12-07 05:42:09 +00:00
|
|
|
const dragging = ref(false);
|
|
|
|
watch(dragging, v => os.deckGlobalEvents.emit(v ? 'column.dragStart' : 'column.dragEnd'));
|
2022-03-20 18:11:14 +00:00
|
|
|
|
2023-12-07 05:42:09 +00:00
|
|
|
const draghover = ref(false);
|
|
|
|
const dropready = ref(false);
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-12-07 05:42:09 +00:00
|
|
|
const isMainColumn = computed(() => props.column.type === 'main');
|
|
|
|
const active = computed(() => props.column.active !== false);
|
2022-03-20 18:11:14 +00:00
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
os.deckGlobalEvents.on('column.dragStart', onOtherDragStart);
|
|
|
|
os.deckGlobalEvents.on('column.dragEnd', onOtherDragEnd);
|
|
|
|
});
|
|
|
|
|
|
|
|
onBeforeUnmount(() => {
|
|
|
|
os.deckGlobalEvents.off('column.dragStart', onOtherDragStart);
|
|
|
|
os.deckGlobalEvents.off('column.dragEnd', onOtherDragEnd);
|
|
|
|
});
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2022-03-20 18:11:14 +00:00
|
|
|
function onOtherDragStart() {
|
2023-12-07 05:42:09 +00:00
|
|
|
dropready.value = true;
|
2022-03-20 18:11:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function onOtherDragEnd() {
|
2023-12-07 05:42:09 +00:00
|
|
|
dropready.value = false;
|
2022-03-20 18:11:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function toggleActive() {
|
|
|
|
if (!props.isStacked) return;
|
|
|
|
updateColumn(props.column.id, {
|
2022-07-03 11:30:58 +00:00
|
|
|
active: !props.column.active,
|
2022-03-20 18:11:14 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getMenu() {
|
2023-12-12 01:26:37 +00:00
|
|
|
let items: MenuItem[] = [{
|
2023-11-03 22:20:53 +00:00
|
|
|
icon: 'ph-gear ph-bold ph-lg',
|
2022-07-16 20:33:21 +00:00
|
|
|
text: i18n.ts._deck.configureColumn,
|
2022-03-20 18:11:14 +00:00
|
|
|
action: async () => {
|
|
|
|
const { canceled, result } = await os.form(props.column.name, {
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
|
|
|
label: i18n.ts.name,
|
2022-07-03 11:30:58 +00:00
|
|
|
default: props.column.name,
|
2022-03-20 18:11:14 +00:00
|
|
|
},
|
|
|
|
width: {
|
|
|
|
type: 'number',
|
|
|
|
label: i18n.ts.width,
|
2023-09-04 04:59:21 +00:00
|
|
|
description: i18n.ts._deck.usedAsMinWidthWhenFlexible,
|
2022-07-03 11:30:58 +00:00
|
|
|
default: props.column.width,
|
2022-03-20 18:11:14 +00:00
|
|
|
},
|
|
|
|
flexible: {
|
|
|
|
type: 'boolean',
|
2023-09-04 04:59:21 +00:00
|
|
|
label: i18n.ts._deck.flexible,
|
2022-07-03 11:30:58 +00:00
|
|
|
default: props.column.flexible,
|
|
|
|
},
|
2020-07-11 01:13:11 +00:00
|
|
|
});
|
2022-03-20 18:11:14 +00:00
|
|
|
if (canceled) return;
|
|
|
|
updateColumn(props.column.id, result);
|
2022-07-03 11:30:58 +00:00
|
|
|
},
|
2022-03-20 18:11:14 +00:00
|
|
|
}, {
|
2022-07-17 14:18:05 +00:00
|
|
|
type: 'parent',
|
|
|
|
text: i18n.ts.move + '...',
|
2023-09-30 22:46:42 +00:00
|
|
|
icon: 'ph-arrows-out-cardinal ph-bold ph-lg',
|
2022-07-17 14:18:05 +00:00
|
|
|
children: [{
|
2023-11-03 22:20:53 +00:00
|
|
|
icon: 'ph-arrow-left ph-bold ph-lg',
|
2022-07-17 14:18:05 +00:00
|
|
|
text: i18n.ts._deck.swapLeft,
|
|
|
|
action: () => {
|
|
|
|
swapLeftColumn(props.column.id);
|
|
|
|
},
|
|
|
|
}, {
|
2023-11-03 22:20:53 +00:00
|
|
|
icon: 'ph-arrow-right ph-bold ph-lg',
|
2022-07-17 14:18:05 +00:00
|
|
|
text: i18n.ts._deck.swapRight,
|
|
|
|
action: () => {
|
|
|
|
swapRightColumn(props.column.id);
|
|
|
|
},
|
|
|
|
}, props.isStacked ? {
|
2023-09-30 22:46:42 +00:00
|
|
|
icon: 'ph-arrow-up ph-bold ph-lg',
|
2022-07-17 14:18:05 +00:00
|
|
|
text: i18n.ts._deck.swapUp,
|
|
|
|
action: () => {
|
|
|
|
swapUpColumn(props.column.id);
|
|
|
|
},
|
|
|
|
} : undefined, props.isStacked ? {
|
2023-09-30 22:46:42 +00:00
|
|
|
icon: 'ph-arrow-down ph-bold ph-lg',
|
2022-07-17 14:18:05 +00:00
|
|
|
text: i18n.ts._deck.swapDown,
|
|
|
|
action: () => {
|
|
|
|
swapDownColumn(props.column.id);
|
|
|
|
},
|
|
|
|
} : undefined],
|
|
|
|
}, {
|
2023-09-30 22:46:42 +00:00
|
|
|
icon: 'ph-stack ph-bold ph-lg',
|
2022-03-20 18:11:14 +00:00
|
|
|
text: i18n.ts._deck.stackLeft,
|
|
|
|
action: () => {
|
|
|
|
stackLeftColumn(props.column.id);
|
2022-07-03 11:30:58 +00:00
|
|
|
},
|
2022-03-20 18:11:14 +00:00
|
|
|
}, props.isStacked ? {
|
2023-09-30 22:46:42 +00:00
|
|
|
icon: 'ph-frame-corners ph-bold ph-lg',
|
2022-03-20 18:11:14 +00:00
|
|
|
text: i18n.ts._deck.popRight,
|
|
|
|
action: () => {
|
|
|
|
popRightColumn(props.column.id);
|
2022-07-03 11:30:58 +00:00
|
|
|
},
|
2023-12-12 01:26:37 +00:00
|
|
|
} : undefined, { type: 'divider' }, {
|
2023-09-30 19:53:52 +00:00
|
|
|
icon: 'ph-trash ph-bold ph-lg',
|
2022-03-20 18:11:14 +00:00
|
|
|
text: i18n.ts.remove,
|
|
|
|
danger: true,
|
|
|
|
action: () => {
|
|
|
|
removeColumn(props.column.id);
|
2022-07-03 11:30:58 +00:00
|
|
|
},
|
2022-03-20 18:11:14 +00:00
|
|
|
}];
|
2022-07-03 11:30:58 +00:00
|
|
|
|
2022-07-16 20:33:21 +00:00
|
|
|
if (props.menu) {
|
2023-12-12 01:26:37 +00:00
|
|
|
items.unshift({ type: 'divider' });
|
2022-07-16 20:33:21 +00:00
|
|
|
items = props.menu.concat(items);
|
2022-07-03 11:30:58 +00:00
|
|
|
}
|
|
|
|
|
2023-11-10 08:49:09 +00:00
|
|
|
if (props.refresher) {
|
|
|
|
items = [{
|
2023-11-23 18:22:34 +00:00
|
|
|
icon: 'ph-arrows-counter-clockwise ph-bold ph-lg',
|
2023-11-10 08:49:09 +00:00
|
|
|
text: i18n.ts.reload,
|
|
|
|
action: () => {
|
|
|
|
if (props.refresher) {
|
|
|
|
props.refresher();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}, ...items];
|
|
|
|
}
|
|
|
|
|
2022-03-20 18:11:14 +00:00
|
|
|
return items;
|
|
|
|
}
|
|
|
|
|
2022-07-03 11:30:58 +00:00
|
|
|
function showSettingsMenu(ev: MouseEvent) {
|
|
|
|
os.popupMenu(getMenu(), ev.currentTarget ?? ev.target);
|
|
|
|
}
|
|
|
|
|
2022-03-20 18:11:14 +00:00
|
|
|
function onContextmenu(ev: MouseEvent) {
|
|
|
|
os.contextMenu(getMenu(), ev);
|
|
|
|
}
|
|
|
|
|
|
|
|
function goTop() {
|
2023-12-07 05:42:09 +00:00
|
|
|
if (body.value) {
|
|
|
|
body.value.scrollTo({
|
2023-05-20 01:12:18 +00:00
|
|
|
top: 0,
|
|
|
|
behavior: 'smooth',
|
|
|
|
});
|
|
|
|
}
|
2022-03-20 18:11:14 +00:00
|
|
|
}
|
|
|
|
|
2022-05-19 08:35:43 +00:00
|
|
|
function onDragstart(ev) {
|
|
|
|
ev.dataTransfer.effectAllowed = 'move';
|
|
|
|
ev.dataTransfer.setData(_DATA_TRANSFER_DECK_COLUMN_, props.column.id);
|
2022-03-20 18:11:14 +00:00
|
|
|
|
|
|
|
// Chromeのバグで、Dragstartハンドラ内ですぐにDOMを変更する(=リアクティブなプロパティを変更する)とDragが終了してしまう
|
|
|
|
// SEE: https://stackoverflow.com/questions/19639969/html5-dragend-event-firing-immediately
|
|
|
|
window.setTimeout(() => {
|
2023-12-07 05:42:09 +00:00
|
|
|
dragging.value = true;
|
2022-03-20 18:11:14 +00:00
|
|
|
}, 10);
|
|
|
|
}
|
|
|
|
|
2022-05-19 08:35:43 +00:00
|
|
|
function onDragend(ev) {
|
2023-12-07 05:42:09 +00:00
|
|
|
dragging.value = false;
|
2022-03-20 18:11:14 +00:00
|
|
|
}
|
|
|
|
|
2022-05-19 08:35:43 +00:00
|
|
|
function onDragover(ev) {
|
2022-03-20 18:11:14 +00:00
|
|
|
// 自分自身がドラッグされている場合
|
2023-12-07 05:42:09 +00:00
|
|
|
if (dragging.value) {
|
2022-03-20 18:11:14 +00:00
|
|
|
// 自分自身にはドロップさせない
|
2022-05-19 08:35:43 +00:00
|
|
|
ev.dataTransfer.dropEffect = 'none';
|
2022-05-29 06:15:52 +00:00
|
|
|
} else {
|
|
|
|
const isDeckColumn = ev.dataTransfer.types[0] === _DATA_TRANSFER_DECK_COLUMN_;
|
2022-03-20 18:11:14 +00:00
|
|
|
|
2022-05-29 06:15:52 +00:00
|
|
|
ev.dataTransfer.dropEffect = isDeckColumn ? 'move' : 'none';
|
2022-03-20 18:11:14 +00:00
|
|
|
|
2023-12-07 05:42:09 +00:00
|
|
|
if (isDeckColumn) draghover.value = true;
|
2022-05-29 06:15:52 +00:00
|
|
|
}
|
2022-03-20 18:11:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function onDragleave() {
|
2023-12-07 05:42:09 +00:00
|
|
|
draghover.value = false;
|
2022-03-20 18:11:14 +00:00
|
|
|
}
|
|
|
|
|
2022-05-19 08:35:43 +00:00
|
|
|
function onDrop(ev) {
|
2023-12-07 05:42:09 +00:00
|
|
|
draghover.value = false;
|
2022-03-20 18:11:14 +00:00
|
|
|
os.deckGlobalEvents.emit('column.dragEnd');
|
|
|
|
|
2022-05-19 08:35:43 +00:00
|
|
|
const id = ev.dataTransfer.getData(_DATA_TRANSFER_DECK_COLUMN_);
|
|
|
|
if (id != null && id !== '') {
|
2022-03-20 18:11:14 +00:00
|
|
|
swapColumn(props.column.id, id);
|
|
|
|
}
|
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
</script>
|
|
|
|
|
2023-01-10 00:53:01 +00:00
|
|
|
<style lang="scss" module>
|
|
|
|
.root {
|
2021-04-10 03:40:50 +00:00
|
|
|
--root-margin: 10px;
|
2023-04-22 11:22:09 +00:00
|
|
|
--deckColumnHeaderHeight: 38px;
|
2020-10-17 11:12:00 +00:00
|
|
|
|
2020-07-11 01:13:11 +00:00
|
|
|
height: 100%;
|
2023-01-02 03:15:26 +00:00
|
|
|
overflow: clip;
|
2022-07-03 11:30:58 +00:00
|
|
|
contain: strict;
|
2023-10-31 18:44:34 +00:00
|
|
|
border-radius: var(--radius);
|
2020-07-11 01:13:11 +00:00
|
|
|
|
|
|
|
&.draghover {
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1000;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: var(--focus);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dragging {
|
2022-07-03 11:30:58 +00:00
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1000;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: var(--focus);
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.dropready {
|
|
|
|
* {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.active) {
|
2020-12-26 13:41:00 +00:00
|
|
|
flex-basis: var(--deckColumnHeaderHeight);
|
|
|
|
min-height: var(--deckColumnHeaderHeight);
|
2023-05-26 02:31:39 +00:00
|
|
|
border-bottom-right-radius: 0;
|
2020-07-11 01:13:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.naked {
|
2020-12-20 08:19:18 +00:00
|
|
|
background: var(--acrylicBg) !important;
|
2021-08-11 13:34:45 +00:00
|
|
|
-webkit-backdrop-filter: var(--blur, blur(10px));
|
|
|
|
backdrop-filter: var(--blur, blur(10px));
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-01-10 00:53:01 +00:00
|
|
|
> .header {
|
2020-07-11 01:13:11 +00:00
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
2023-01-10 00:53:01 +00:00
|
|
|
color: var(--fg);
|
2020-07-11 01:13:11 +00:00
|
|
|
}
|
2023-05-26 02:31:39 +00:00
|
|
|
|
|
|
|
> .body {
|
2023-05-29 10:35:11 +00:00
|
|
|
background: transparent !important;
|
|
|
|
|
2023-05-26 02:31:39 +00:00
|
|
|
&::-webkit-scrollbar-track {
|
2023-05-29 10:35:11 +00:00
|
|
|
background: transparent;
|
2023-05-26 02:31:39 +00:00
|
|
|
}
|
2023-06-01 12:03:07 +00:00
|
|
|
scrollbar-color: var(--scrollbarHandle) transparent;
|
2023-05-26 02:31:39 +00:00
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.paged {
|
2020-12-28 08:00:31 +00:00
|
|
|
background: var(--bg) !important;
|
2023-05-26 02:31:39 +00:00
|
|
|
|
|
|
|
> .body {
|
2023-05-29 10:35:11 +00:00
|
|
|
background: var(--bg) !important;
|
2023-06-11 00:53:07 +00:00
|
|
|
overflow-y: scroll !important;
|
2023-05-29 10:35:11 +00:00
|
|
|
|
2023-05-26 02:31:39 +00:00
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background: inherit;
|
|
|
|
}
|
2023-06-01 12:03:07 +00:00
|
|
|
scrollbar-color: var(--scrollbarHandle) transparent;
|
2023-05-26 02:31:39 +00:00
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
}
|
2023-01-10 00:53:01 +00:00
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-01-10 00:53:01 +00:00
|
|
|
.header {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
z-index: 2;
|
|
|
|
line-height: var(--deckColumnHeaderHeight);
|
|
|
|
height: var(--deckColumnHeaderHeight);
|
2023-05-26 04:24:31 +00:00
|
|
|
padding: 0 16px 0 30px;
|
2023-01-10 00:53:01 +00:00
|
|
|
font-size: 0.9em;
|
|
|
|
color: var(--panelHeaderFg);
|
|
|
|
background: var(--panelHeaderBg);
|
2023-04-21 00:29:32 +00:00
|
|
|
box-shadow: 0 1px 0 0 var(--panelHeaderDivider);
|
2023-01-10 00:53:01 +00:00
|
|
|
cursor: pointer;
|
2023-04-21 00:34:36 +00:00
|
|
|
user-select: none;
|
2023-01-10 00:53:01 +00:00
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-05-26 02:31:39 +00:00
|
|
|
.color {
|
|
|
|
position: absolute;
|
2023-05-26 04:24:31 +00:00
|
|
|
top: 12px;
|
|
|
|
left: 12px;
|
2023-05-26 02:31:39 +00:00
|
|
|
width: 3px;
|
2023-05-26 04:24:31 +00:00
|
|
|
height: calc(100% - 24px);
|
2023-05-26 02:31:39 +00:00
|
|
|
background: var(--accent);
|
2023-10-31 18:44:34 +00:00
|
|
|
border-radius: var(--radius-ellipse);
|
2023-05-26 02:31:39 +00:00
|
|
|
}
|
|
|
|
|
2023-05-26 01:48:49 +00:00
|
|
|
.tabShape {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: -8px;
|
|
|
|
width: auto;
|
|
|
|
height: calc(100% - 6px);
|
|
|
|
}
|
|
|
|
|
2023-01-10 00:53:01 +00:00
|
|
|
.title {
|
|
|
|
display: inline-block;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-01-10 00:53:01 +00:00
|
|
|
.toggleActive,
|
|
|
|
.menu {
|
|
|
|
z-index: 1;
|
|
|
|
width: var(--deckColumnHeaderHeight);
|
|
|
|
line-height: var(--deckColumnHeaderHeight);
|
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-01-10 00:53:01 +00:00
|
|
|
.toggleActive {
|
|
|
|
margin-left: -16px;
|
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-06-01 09:07:30 +00:00
|
|
|
.grabber {
|
2023-01-10 00:53:01 +00:00
|
|
|
margin-left: auto;
|
2023-06-01 09:07:30 +00:00
|
|
|
margin-right: 10px;
|
|
|
|
padding: 8px 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: var(--deckColumnHeaderHeight);
|
|
|
|
cursor: move;
|
|
|
|
user-select: none;
|
2023-06-01 10:45:06 +00:00
|
|
|
opacity: 0.5;
|
2023-06-01 09:07:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu {
|
2023-01-10 00:53:01 +00:00
|
|
|
margin-right: -16px;
|
|
|
|
}
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-01-10 00:53:01 +00:00
|
|
|
.body {
|
|
|
|
height: calc(100% - var(--deckColumnHeaderHeight));
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: clip;
|
2023-05-31 03:24:00 +00:00
|
|
|
overscroll-behavior-y: contain;
|
2023-01-10 00:53:01 +00:00
|
|
|
box-sizing: border-box;
|
2023-05-08 09:30:40 +00:00
|
|
|
container-type: size;
|
2023-01-10 00:53:01 +00:00
|
|
|
background-color: var(--bg);
|
2023-05-26 02:31:39 +00:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background: var(--panel);
|
|
|
|
}
|
2023-06-01 12:03:07 +00:00
|
|
|
scrollbar-color: var(--scrollbarHandle) var(--panel);
|
2020-07-11 01:13:11 +00:00
|
|
|
}
|
|
|
|
</style>
|