This commit is contained in:
syuilo 2023-05-26 13:32:42 +09:00
parent fd03e2e1a7
commit 10634b3615

View File

@ -1,18 +1,18 @@
<template> <template>
<div class="dlrsnxqu"> <div :class="$style.root">
<div <div
v-for="x in defaultStore.reactiveState.statusbars.value" :key="x.id" class="item" :class="[{ black: x.black }, { v-for="x in defaultStore.reactiveState.statusbars.value" :key="x.id" :class="[$style.item, { [$style.black]: x.black,
verySmall: x.size === 'verySmall', [$style.verySmall]: x.size === 'verySmall',
small: x.size === 'small', [$style.small]: x.size === 'small',
medium: x.size === 'medium', [$style.medium]: x.size === 'medium',
large: x.size === 'large', [$style.large]: x.size === 'large',
veryLarge: x.size === 'veryLarge', [$style.veryLarge]: x.size === 'veryLarge',
}]" }]"
> >
<span class="name">{{ x.name }}</span> <span :class="$style.name">{{ x.name }}</span>
<XRss v-if="x.type === 'rss'" class="body" :refreshIntervalSec="x.props.refreshIntervalSec" :marqueeDuration="x.props.marqueeDuration" :marqueeReverse="x.props.marqueeReverse" :display="x.props.display" :url="x.props.url" :shuffle="x.props.shuffle"/> <XRss v-if="x.type === 'rss'" :class="$style.body" :refreshIntervalSec="x.props.refreshIntervalSec" :marqueeDuration="x.props.marqueeDuration" :marqueeReverse="x.props.marqueeReverse" :display="x.props.display" :url="x.props.url" :shuffle="x.props.shuffle"/>
<XFederation v-else-if="x.type === 'federation'" class="body" :refreshIntervalSec="x.props.refreshIntervalSec" :marqueeDuration="x.props.marqueeDuration" :marqueeReverse="x.props.marqueeReverse" :display="x.props.display" :colored="x.props.colored"/> <XFederation v-else-if="x.type === 'federation'" :class="$style.body" :refreshIntervalSec="x.props.refreshIntervalSec" :marqueeDuration="x.props.marqueeDuration" :marqueeReverse="x.props.marqueeReverse" :display="x.props.display" :colored="x.props.colored"/>
<XUserList v-else-if="x.type === 'userList'" class="body" :refreshIntervalSec="x.props.refreshIntervalSec" :marqueeDuration="x.props.marqueeDuration" :marqueeReverse="x.props.marqueeReverse" :display="x.props.display" :userListId="x.props.userListId"/> <XUserList v-else-if="x.type === 'userList'" :class="$style.body" :refreshIntervalSec="x.props.refreshIntervalSec" :marqueeDuration="x.props.marqueeDuration" :marqueeReverse="x.props.marqueeReverse" :display="x.props.display" :userListId="x.props.userListId"/>
</div> </div>
</div> </div>
</template> </template>
@ -25,12 +25,13 @@ const XFederation = defineAsyncComponent(() => import('./statusbar-federation.vu
const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue')); const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue'));
</script> </script>
<style lang="scss" scoped> <style lang="scss" module>
.dlrsnxqu { .root {
font-size: 15px; font-size: 15px;
background: var(--panel); background: var(--panel);
}
> .item { .item {
--height: 24px; --height: 24px;
--nameMargin: 10px; --nameMargin: 10px;
font-size: 0.85em; font-size: 0.85em;
@ -67,7 +68,13 @@ const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue')
overflow: clip; overflow: clip;
contain: strict; contain: strict;
> .name { &.black {
background: #000;
color: #fff;
}
}
.name {
padding: 0 var(--nameMargin); padding: 0 var(--nameMargin);
font-weight: bold; font-weight: bold;
color: var(--accent); color: var(--accent);
@ -75,17 +82,10 @@ const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue')
&:empty { &:empty {
display: none; display: none;
} }
} }
> .body { .body {
min-width: 0; min-width: 0;
flex: 1; flex: 1;
}
&.black {
background: #000;
color: #fff;
}
}
} }
</style> </style>