Mastodon: layout fix and poll notification

This commit is contained in:
May B. 2019-06-04 16:02:42 +02:00
parent 271dd81d9e
commit cd19aa864f
4 changed files with 10 additions and 5 deletions

View File

@ -303,11 +303,13 @@ export default class Client extends Mixins<ServiceClient<Options>>(ServiceClient
.list
@include group-tile
flex-grow: 1
overflow-y: scroll
.statues, .notifications, .context, .emoji-list
flex-grow: 1
display: flex
flex-direction: column
overflow-y: auto
overflow: inherit
height: 100%
.ancestors, .descendants
.status
font-size: .9em

View File

@ -9,7 +9,8 @@ export const Notification = {
mention: '✉',
reblog: '⟳',
favourite: '⚝',
follow: '👁'
follow: '👁',
poll: '✓'
}
export const Icons = {

View File

@ -1,16 +1,18 @@
<template lang="pug">
.notification
account(:account="notification.account" :bus="bus")
a.date
| {{ fromNow(notification.created_at) }}
span(@click.stop.prevent="makeDismiss") {{ closeIcon }}
span.colored.text-icon.letter {{ notificationTypeIcon }}
span.date {{ fromNow(notification.created_at) }}
.content
template(v-if="notification.type == 'follow'") Vous suit
status.reblog(v-else-if="notification.status" :status="notification.status"
:withAccount="notification.type != 'mention'" :bus="bus")
a.date(@click.stop.prevent="makeDismiss" style="margin-top: -1em") {{ closeIcon }}
</template>
<script lang="ts">

View File

@ -103,7 +103,7 @@ export interface Context {
descendants: Status[]
}
export type NotificationType = 'follow' | 'mention' | 'reblog' | 'favourite'
export type NotificationType = 'follow' | 'mention' | 'reblog' | 'favourite' | 'poll'
export interface Notification {
id: number
account: Account