Whalebird-desktop-client-ma.../src/renderer/components/molecules/Toot.vue

840 lines
24 KiB
Vue
Raw Normal View History

<template>
<div
class="status"
tabIndex="0"
v-shortkey="
shortcutEnabled
? {
next: ['j'],
prev: ['k'],
right: ['l'],
left: ['h'],
reply: ['r'],
boost: ['b'],
fav: ['f'],
open: ['o'],
profile: ['p'],
image: ['i'],
cw: ['x']
}
: {}
"
@shortkey="handleTootControl"
ref="status"
@click="$emit('selectToot')"
role="article"
aria-label="toot"
>
<div v-show="filtered" class="filtered">
Filtered
</div>
<div v-show="!filtered" class="toot">
<div class="icon" role="presentation">
<FailoverImg
:src="originalMessage.account.avatar"
@click="openUser(originalMessage.account)"
:alt="`Avatar of ${originalMessage.account.username}`"
/>
</div>
<div class="detail" v-on:dblclick="openDetail(message)">
<div class="toot-header">
<div class="user" @click="openUser(originalMessage.account)">
<span class="display-name" @click="openUser(message.account)"><bdi v-html="username(originalMessage.account)"></bdi></span>
<span class="acct">{{ accountName(originalMessage.account) }}</span>
</div>
<div class="timestamp">
<time :datetime="originalMessage.created_at" :title="readableTimestamp" @click="openDetail(message)">
{{ timestamp }}
</time>
</div>
<div class="clearfix"></div>
</div>
<div class="content-wrapper">
<div class="spoiler" v-show="spoilered">
<span v-html="spoilerText()"></span>
<el-button v-if="!isShowContent" plain type="primary" size="medium" class="spoil-button" @click="showContent = true">
{{ $t('cards.toot.show_more') }}
</el-button>
<el-button v-else type="primary" size="medium" class="spoil-button" @click="showContent = false">
{{ $t('cards.toot.hide') }}
</el-button>
</div>
<div class="content" v-show="isShowContent" v-html="status()" @click.capture.prevent="tootClick"></div>
<div class="poll" v-show="isShowContent" v-if="poll">
<ul class="poll-list">
<li v-for="(option, id) in poll.options" v-bind:key="id">
<el-radio v-model="pollRadio" :label="option.title">{{ option.title }}</el-radio>
</li>
</ul>
<el-button type="success">Vote</el-button>
{{ poll.votes_count }} votes,
until {{ parseDatetime(poll.expires_at, now) }}
</div>
</div>
<div class="attachments">
<el-button v-show="sensitive && !isShowAttachments" class="show-sensitive" type="info" @click="showAttachments = true">
{{ $t('cards.toot.sensitive') }}
</el-button>
<div v-show="isShowAttachments">
<el-button
v-show="sensitive && isShowAttachments"
class="hide-sensitive"
type="text"
@click="showAttachments = false"
:title="$t('cards.toot.hide')"
>
<icon name="eye" class="hide"></icon>
</el-button>
<div class="media" v-bind:key="media.preview_url" v-for="media in mediaAttachments">
<FailoverImg :src="media.preview_url" @click="openImage(media.url, mediaAttachments)" :title="media.description" />
<el-tag class="media-label" size="mini" v-if="media.type == 'gifv'">GIF</el-tag>
<el-tag class="media-label" size="mini" v-else-if="media.type == 'video'">VIDEO</el-tag>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="reblogger" v-show="message.reblog !== null">
<icon name="retweet"></icon>
<span class="reblogger-icon" @click="openUser(message.account)" role="presentation">
<FailoverImg :src="message.account.avatar" :alt="`Avatar of ${message.account.username}`" />
</span>
<span
class="reblogger-name"
@click="openUser(message.account)"
:title="`Reblogged by ${message.account.username}`"
:aria-label="`Reblogged by ${message.account.username}`"
>
<bdi v-html="username(message.account)"></bdi>
</span>
</div>
<div class="tool-box">
<el-button type="text" @click="openReply()" class="reply" :title="$t('cards.toot.reply')" :aria-label="$t('cards.toot.reply')">
<icon name="reply" scale="0.9"></icon>
</el-button>
<el-button v-show="locked" type="text" class="locked">
<icon name="lock" scale="0.9"></icon>
</el-button>
<el-button v-show="directed" type="text" class="directed">
<icon name="envelope" scale="0.9"></icon>
</el-button>
<el-button
v-show="!locked && !directed"
type="text"
@click="changeReblog(originalMessage)"
:class="originalMessage.reblogged ? 'reblogged' : 'reblog'"
:title="$t('cards.toot.reblog')"
>
<icon name="retweet" scale="0.9"></icon>
</el-button>
<span class="count">
{{ reblogsCount }}
</span>
<el-button
type="text"
@click="changeFavourite(originalMessage)"
:class="originalMessage.favourited ? 'favourited animated bounceIn' : 'favourite'"
:title="$t('cards.toot.fav')"
:aria-label="$t('cards.toot.fav')"
>
<icon name="star" scale="0.9"></icon>
</el-button>
<span class="count">
{{ favouritesCount }}
</span>
<el-button class="pinned" type="text" :title="$t('cards.toot.pinned')" :aria-label="$t('cards.toot.pinned')" v-show="pinned">
<icon name="thumbtack" scale="0.9"></icon>
</el-button>
<popper trigger="click" :options="{ placement: 'bottom' }" ref="popper">
<div class="popper toot-menu">
<ul class="menu-list">
<li role="button" @click="openDetail(message)">
{{ $t('cards.toot.view_toot_detail') }}
</li>
<li role="button" @click="openBrowser(originalMessage)">
{{ $t('cards.toot.open_in_browser') }}
</li>
<li role="button" @click="copyLink(originalMessage)">
{{ $t('cards.toot.copy_link_to_toot') }}
</li>
<li role="button" class="separate" @click="confirmMute()">
{{ $t('cards.toot.mute') }}
</li>
<li role="button" @click="block()">
{{ $t('cards.toot.block') }}
</li>
<li role="button" @click="reportUser()" v-if="!isMyMessage">
{{ $t('cards.toot.report') }}
</li>
<li role="button" class="separate" @click="deleteToot(message)" v-if="isMyMessage">
{{ $t('cards.toot.delete') }}
</li>
</ul>
</div>
<el-button slot="reference" type="text" :title="$t('cards.toot.detail')">
<icon name="ellipsis-h" scale="0.9"></icon>
</el-button>
</popper>
</div>
<div class="application" v-show="application !== null">
{{ $t('cards.toot.via', { application: application }) }}
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="fill-line"></div>
</div>
</template>
<script>
2018-03-12 12:04:30 +01:00
import moment from 'moment'
2018-04-27 01:46:44 +02:00
import { shell, clipboard } from 'electron'
import { mapState } from 'vuex'
import { findAccount, findLink, findTag } from '~/src/renderer/utils/tootParser'
import DisplayStyle from '~/src/constants/displayStyle'
import TimeFormat from '~/src/constants/timeFormat'
import emojify from '~/src/renderer/utils/emojify'
import FailoverImg from '~/src/renderer/components/atoms/FailoverImg'
import { setInterval, clearInterval } from 'timers'
2018-03-12 12:04:30 +01:00
export default {
name: 'toot',
components: {
FailoverImg
},
data() {
return {
showContent: this.$store.state.App.ignoreCW,
showAttachments: this.$store.state.App.ignoreNFSW,
2019-02-18 14:16:19 +01:00
hideAllAttachments: this.$store.state.App.hideAllAttachments,
now: Date.now(),
pollRadio: null
}
},
2018-07-09 01:49:49 +02:00
props: {
message: {
type: Object,
default: {}
},
filter: {
type: String,
default: ''
},
focused: {
type: Boolean,
default: false
},
overlaid: {
type: Boolean,
default: false
2018-11-22 02:07:51 +01:00
},
pinned: {
type: Boolean,
default: false
2018-07-09 01:49:49 +02:00
}
},
computed: {
...mapState('App', {
displayNameStyle: state => state.displayNameStyle,
timeFormat: state => state.timeFormat,
language: state => state.language
}),
shortcutEnabled: function() {
return this.focused && !this.overlaid
},
timestamp: function() {
return this.parseDatetime(this.originalMessage.created_at, this.now)
},
readableTimestamp: function() {
moment.locale(this.language)
return moment(this.originalMessage.created_at).format('LLLL')
},
originalMessage: function() {
if (this.message.reblog !== null) {
return this.message.reblog
} else {
return this.message
}
},
mediaAttachments: function() {
return this.originalMessage.media_attachments
},
reblogsCount: function() {
if (this.originalMessage.reblogs_count > 0) {
return this.originalMessage.reblogs_count
}
return ''
},
favouritesCount: function() {
if (this.originalMessage.favourites_count > 0) {
return this.originalMessage.favourites_count
}
return ''
2019-01-23 15:43:10 +01:00
},
isMyMessage: function() {
2019-01-23 15:43:10 +01:00
return this.$store.state.TimelineSpace.account.accountId === this.originalMessage.account.id
2019-01-23 15:44:41 +01:00
},
application: function() {
2019-01-23 15:44:41 +01:00
let msg = this.originalMessage
if (msg.application !== undefined && msg.application !== null) {
2019-01-23 15:44:41 +01:00
return msg.application.name
}
return null
2019-01-23 16:01:25 +01:00
},
spoilered: function() {
2019-01-23 16:01:25 +01:00
return this.originalMessage.spoiler_text.length > 0
},
isShowContent: function() {
return !this.spoilered || this.showContent
2019-01-23 16:03:54 +01:00
},
poll: function() {
return this.originalMessage.poll
},
sensitive: function() {
2019-02-18 14:16:19 +01:00
return (this.hideAllAttachments || this.originalMessage.sensitive) && this.mediaAttachments.length > 0
},
isShowAttachments: function() {
return !this.sensitive || this.showAttachments
2019-01-23 16:06:13 +01:00
},
filtered: function() {
2019-01-23 16:06:13 +01:00
return this.filter.length > 0 && this.originalMessage.content.search(this.filter) >= 0
2019-01-23 16:14:33 +01:00
},
locked: function() {
2019-01-23 16:14:33 +01:00
return this.message.visibility === 'private'
2019-01-23 16:15:53 +01:00
},
directed: function() {
2019-01-23 16:15:53 +01:00
return this.message.visibility === 'direct'
}
},
mounted() {
if (this.focused) {
this.$refs.status.focus()
}
this.updateInterval = setInterval(() => {
this.$data.now = Date.now()
}, 60000)
},
beforeDestroy() {
clearInterval(this.updateInterval)
},
watch: {
focused: function(newState, oldState) {
if (newState) {
this.$nextTick(function() {
this.$refs.status.focus()
})
} else if (oldState && !newState) {
this.$nextTick(function() {
this.$refs.status.blur()
})
}
}
},
2018-03-12 12:04:30 +01:00
methods: {
username(account) {
switch (this.displayNameStyle) {
case DisplayStyle.DisplayNameAndUsername.value:
if (account.display_name !== '') {
2018-11-13 16:14:57 +01:00
return emojify(account.display_name, account.emojis)
} else {
return account.acct
}
case DisplayStyle.DisplayName.value:
if (account.display_name !== '') {
2018-11-13 16:14:57 +01:00
return emojify(account.display_name, account.emojis)
} else {
return account.acct
}
case DisplayStyle.Username.value:
return account.acct
}
},
accountName(account) {
switch (this.displayNameStyle) {
case DisplayStyle.DisplayNameAndUsername.value:
return `@${account.acct}`
case DisplayStyle.DisplayName.value:
case DisplayStyle.Username.value:
return ''
}
},
parseDatetime(datetime, epoch) {
switch (this.timeFormat) {
case TimeFormat.Absolute.value:
return moment(datetime).format('YYYY-MM-DD HH:mm:ss')
case TimeFormat.Relative.value:
2018-08-30 18:08:07 +02:00
moment.locale(this.language)
return moment(datetime).from(epoch)
}
},
tootClick(e) {
const parsedTag = findTag(e.target, 'toot')
if (parsedTag !== null) {
const tag = `/${this.$route.params.id}/hashtag/${parsedTag}`
this.$router.push({ path: tag })
return tag
}
const parsedAccount = findAccount(e.target, 'toot')
if (parsedAccount !== null) {
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)
this.$store
.dispatch('TimelineSpace/Contents/SideBar/AccountProfile/searchAccount', parsedAccount)
.then(account => {
this.$store.dispatch('TimelineSpace/Contents/SideBar/openAccountComponent')
this.$store.dispatch('TimelineSpace/Contents/SideBar/AccountProfile/changeAccount', account)
})
.catch(err => {
console.error(err)
this.openLink(e)
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', false)
})
return parsedAccount.acct
}
this.openLink(e)
},
openLink(e) {
const link = findLink(e.target, 'toot')
if (link !== null) {
return shell.openExternal(link)
}
2018-03-14 08:59:39 +01:00
},
openReply() {
this.$store.dispatch('TimelineSpace/Modals/NewToot/openReply', this.originalMessage)
},
openDetail(message) {
this.$store.dispatch('TimelineSpace/Contents/SideBar/openTootComponent')
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/changeToot', message)
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)
this.$refs.popper.doClose()
},
openBrowser(message) {
2018-04-27 01:46:44 +02:00
shell.openExternal(message.url)
this.$refs.popper.doClose()
2018-04-27 01:46:44 +02:00
},
copyLink(message) {
2018-04-27 01:46:44 +02:00
clipboard.writeText(message.url, 'toot-link')
this.$refs.popper.doClose()
},
reportUser() {
this.$store.dispatch('TimelineSpace/Modals/Report/openReport', this.originalMessage)
2018-09-30 16:01:40 +02:00
this.$refs.popper.doClose()
},
confirmMute() {
this.$store.dispatch('TimelineSpace/Modals/MuteConfirm/changeAccount', this.originalMessage.account)
2018-09-30 16:55:33 +02:00
this.$store.dispatch('TimelineSpace/Modals/MuteConfirm/changeModal', true)
this.$refs.popper.doClose()
},
block() {
this.$store.dispatch('molecules/Toot/block', this.originalMessage.account)
2018-09-30 16:55:33 +02:00
this.$refs.popper.doClose()
},
changeReblog(message) {
2018-03-14 14:38:42 +01:00
if (message.reblogged) {
this.$store
.dispatch('molecules/Toot/unreblog', message)
.then(data => {
2018-03-14 14:38:42 +01:00
this.$emit('update', data)
})
.catch(err => {
console.error(err)
2018-03-14 14:38:42 +01:00
this.$message({
2018-08-13 08:27:53 +02:00
message: this.$t('message.unreblog_error'),
2018-03-14 14:38:42 +01:00
type: 'error'
})
})
} else {
this.$store
.dispatch('molecules/Toot/reblog', message)
.then(data => {
2018-03-14 14:38:42 +01:00
this.$emit('update', data)
})
.catch(err => {
console.error(err)
2018-03-14 14:38:42 +01:00
this.$message({
2018-08-13 08:27:53 +02:00
message: this.$t('message.reblog_error'),
2018-03-14 14:38:42 +01:00
type: 'error'
})
})
}
},
changeFavourite(message) {
2018-03-14 09:35:44 +01:00
if (message.favourited) {
this.$store
.dispatch('molecules/Toot/removeFavourite', message)
.then(data => {
this.$emit('update', data)
})
.catch(err => {
console.error(err)
2018-03-14 09:35:44 +01:00
this.$message({
2018-08-13 08:27:53 +02:00
message: this.$t('message.unfavourite_error'),
2018-03-14 09:35:44 +01:00
type: 'error'
})
2018-03-14 08:59:39 +01:00
})
2018-03-14 09:35:44 +01:00
} else {
this.$store
.dispatch('molecules/Toot/addFavourite', message)
.then(data => {
this.$emit('update', data)
})
.catch(err => {
console.error(err)
2018-03-14 09:35:44 +01:00
this.$message({
2018-08-13 08:27:53 +02:00
message: this.$t('message.favourite_error'),
2018-03-14 09:35:44 +01:00
type: 'error'
})
})
}
},
openImage(url, rawMediaList) {
const mediaList = rawMediaList.map(media => {
2018-04-27 12:15:14 +02:00
return media.url
})
const currentIndex = mediaList.indexOf(url)
this.$store.dispatch('TimelineSpace/Modals/ImageViewer/openModal', {
currentIndex: currentIndex,
mediaList: rawMediaList
})
2018-03-29 15:41:28 +02:00
},
openUser(account) {
this.$store.dispatch('TimelineSpace/Contents/SideBar/openAccountComponent')
this.$store.dispatch('TimelineSpace/Contents/SideBar/AccountProfile/changeAccount', account)
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)
2018-04-27 12:15:14 +02:00
},
deleteToot(message) {
this.$store
.dispatch('molecules/Toot/deleteToot', message)
.then(message => {
2018-04-30 15:04:33 +02:00
this.$emit('delete', message)
})
.catch(() => {
this.$message({
2018-08-13 08:27:53 +02:00
message: this.$t('message.delete_error'),
2018-04-30 15:04:33 +02:00
type: 'error'
})
})
},
status() {
const original = this.originalMessage
return emojify(original.content, original.emojis)
2018-08-18 15:22:25 +02:00
},
spoilerText() {
const original = this.originalMessage
2018-08-18 15:22:25 +02:00
return emojify(original.spoiler_text, original.emojis)
},
handleTootControl(event) {
switch (event.srcKey) {
case 'next':
this.$emit('focusNext')
break
case 'prev':
this.$emit('focusPrev')
break
case 'right':
this.$emit('focusRight')
break
case 'left':
this.$emit('focusLeft')
break
case 'reply':
this.openReply()
break
case 'boost':
this.changeReblog(this.message)
break
case 'fav':
this.changeFavourite(this.message)
break
case 'open':
this.openDetail(this.message)
break
case 'profile':
this.openUser(this.originalMessage.account)
break
case 'image':
const images = this.mediaAttachments
if (images.length === 0) {
return 0
}
this.openImage(images[0].url, images)
break
case 'cw':
this.showContent = !this.showContent
this.showAttachments = !this.showAttachments
break
}
2018-03-12 12:04:30 +01:00
}
}
}
</script>
2018-03-12 11:36:13 +01:00
<style lang="scss" scoped>
.toot {
padding: 8px 0 0 16px;
2018-11-16 18:09:13 +01:00
.fa-icon {
font-size: 0.9em;
width: auto;
height: 1em;
max-width: 100%;
max-height: 100%;
}
2018-03-12 11:36:13 +01:00
.icon {
float: left;
img {
width: 36px;
height: 36px;
border-radius: 4px;
cursor: pointer;
2018-11-27 16:41:55 +01:00
display: block;
2018-03-12 11:36:13 +01:00
}
}
.detail {
2018-05-28 14:54:35 +02:00
margin: 0 8px 0 8px;
float: left;
width: calc(100% - 52px);
2018-03-12 11:36:13 +01:00
.toot-header {
.user {
float: left;
2018-04-21 11:59:34 +02:00
font-size: var(--base-font-size);
cursor: pointer;
white-space: nowrap;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
2018-04-17 16:46:16 +02:00
2018-11-13 16:14:57 +01:00
.display-name /deep/ {
2018-04-17 16:46:16 +02:00
font-weight: 800;
color: var(--theme-primary-color);
2018-11-13 16:14:57 +01:00
.emojione {
max-width: 14px;
max-height: 14px;
}
2018-04-17 16:46:16 +02:00
}
.acct {
font-weight: normal;
color: var(--theme-secondary-color);
}
2018-03-12 11:36:13 +01:00
}
.timestamp {
2018-04-21 11:59:34 +02:00
font-size: var(--base-font-size);
2018-03-12 11:36:13 +01:00
text-align: right;
color: #909399;
2018-09-21 16:46:08 +02:00
float: right;
cursor: pointer;
2018-03-12 11:36:13 +01:00
}
}
2018-08-18 15:22:25 +02:00
.content-wrapper /deep/ {
2018-04-21 11:59:34 +02:00
font-size: var(--base-font-size);
color: var(--theme-primary-color);
2018-08-18 15:22:25 +02:00
.content {
margin: var(--toot-padding) 0;
word-wrap: break-word;
2018-08-18 15:22:25 +02:00
}
.poll {
.poll-list {
list-style: none;
padding-left: 16px;
li {
margin: 4px 0;
}
}
}
2018-08-18 15:22:25 +02:00
.emojione {
width: 20px;
height: 20px;
}
2018-03-12 11:36:13 +01:00
}
2018-11-16 18:09:13 +01:00
.spoiler {
margin: 8px 0;
.spoil-button {
background-color: var(--theme-selected-background-color);
border-color: var(--theme-border-color);
padding: 2px 4px;
}
}
.attachments {
position: relative;
2018-11-16 18:09:13 +01:00
margin: 4px 0 8px;
.show-sensitive {
padding: 20px 32px;
margin-bottom: 4px;
}
.hide-sensitive {
position: absolute;
top: 2px;
left: 2px;
background-color: rgba(0, 0, 0, 0.5);
padding: 4px;
&:hover {
background-color: rgba(0, 0, 0, 0.9);
}
}
.media {
2018-04-04 12:56:00 +02:00
float: left;
margin-right: 8px;
2018-11-17 01:11:43 +01:00
margin-bottom: 4px;
2018-11-16 18:09:13 +01:00
width: 200px;
height: 200px;
img {
cursor: zoom-in;
2018-11-16 18:09:13 +01:00
object-fit: cover;
2018-04-04 02:06:41 +02:00
max-width: 200px;
max-height: 200px;
2018-11-16 18:09:13 +01:00
width: 100%;
height: 100%;
border-radius: 8px;
}
2018-10-31 15:04:49 +01:00
.media-label {
position: absolute;
2018-11-16 18:09:13 +01:00
bottom: 6px;
left: 4px;
2018-10-31 15:04:49 +01:00
color: #fff;
2018-11-16 18:09:13 +01:00
background-color: rgba(0, 0, 0, 0.3);
2018-10-31 15:04:49 +01:00
}
}
}
2018-03-14 15:09:04 +01:00
.reblogger {
color: #909399;
.reblogger-icon {
img {
width: 16px;
height: 16px;
border-radius: 2px;
cursor: pointer;
2018-03-14 15:09:04 +01:00
}
}
2018-11-13 16:14:57 +01:00
.reblogger-name /deep/ {
2018-04-21 11:59:34 +02:00
font-size: calc(var(--base-font-size) * 0.86);
cursor: pointer;
2018-11-13 16:14:57 +01:00
.emojione {
max-width: 10px;
max-height: 10px;
}
2018-03-14 15:09:04 +01:00
}
}
2018-03-12 11:36:13 +01:00
.tool-box {
float: left;
2018-11-16 18:09:13 +01:00
.fa-icon {
vertical-align: bottom;
}
2018-03-12 11:36:13 +01:00
button {
margin: 0 8px;
padding: 0;
color: #909399;
}
.reblogged {
color: #409eff;
}
.favourited {
color: #e6a23c;
}
2018-04-29 02:40:02 +02:00
.count {
font-size: 0.8em;
color: #909399;
margin: 0 0 4px -8px;
}
2018-11-22 02:07:51 +01:00
.pinned {
color: gold;
}
.toot-menu {
2018-09-13 14:38:03 +02:00
padding: 2px 0;
border-color: #909399;
.menu-list {
padding: 0;
margin: 4px 0;
2018-09-13 14:38:03 +02:00
font-size: 0.9rem;
list-style-type: none;
2018-09-13 14:38:03 +02:00
line-height: 32px;
text-align: left;
color: #303133;
li {
box-sizing: border-box;
2018-09-13 14:38:03 +02:00
padding: 0 32px 0 16px;
&:hover {
2018-09-13 14:38:03 +02:00
background-color: #409eff;
color: #fff;
cursor: pointer;
}
&.separate {
border-top: 1px solid var(--theme-border-color);
padding-top: 4px;
margin-top: 2px;
}
}
}
}
2018-03-12 11:36:13 +01:00
}
.application {
float: right;
color: #909399;
}
.reply:hover,
.reblog:hover,
.favourite:hover {
color: #409eff;
}
2018-03-12 11:36:13 +01:00
}
2018-04-13 16:42:00 +02:00
.action-pop-over {
color: #303133;
}
2018-03-12 11:36:13 +01:00
}
2018-07-10 15:10:57 +02:00
.filtered {
2018-07-09 01:49:49 +02:00
align-items: center;
display: flex;
height: 40px;
justify-content: center;
}
.status:focus {
background-color: var(--theme-selected-background-color);
outline: 0;
}
2018-07-09 01:49:49 +02:00
.fill-line {
height: 1px;
background-color: var(--theme-border-color);
margin: 4px 0 0;
}
2018-03-12 11:36:13 +01:00
</style>