Merge branch 'post-polish-fixes' into shigusegubu

* post-polish-fixes:
  small fix for non-square gif avatars
  Fixed collapseMessageWithSubjectLocal always using instance-provided config.
  Fix last place with usercard having wrong width
  Fixed non-masked image looking weird in chrome.
  Kinda went back to using align-items: stretch. Fixed error message floating.
This commit is contained in:
Henry Jameson 2018-09-03 23:01:07 +03:00
commit 9ceed2f898
6 changed files with 51 additions and 33 deletions

View file

@ -248,6 +248,7 @@ nav {
justify-content: center; justify-content: center;
flex: 0 0 auto; flex: 0 0 auto;
z-index: -1; z-index: -1;
.mask { .mask {
mask-repeat: no-repeat; mask-repeat: no-repeat;
mask-position: center; mask-position: center;
@ -260,7 +261,10 @@ nav {
left: 0; left: 0;
right: 0; right: 0;
} }
img { img {
height: 100%;
object-fit: contain;
display: block; display: block;
flex: 0; flex: 0;
} }
@ -325,18 +329,35 @@ main-router {
background-size: cover; background-size: cover;
padding: .6em .6em; padding: .6em .6em;
text-align: left; text-align: left;
font-size: 1.3em; line-height: 28px;
line-height: 24px;
background-color: $fallback--btn; background-color: $fallback--btn;
background-color: var(--btn, $fallback--btn); background-color: var(--btn, $fallback--btn);
align-items: baseline; align-items: baseline;
.title { .title {
flex: 1 0 auto; flex: 1 0 auto;
font-size: 1.3em;
}
.alert {
white-space: nowrap;
text-overflow: ellipsis;
overflow-x: hidden;
} }
button { button {
height: 100%; flex-shrink: 0;
}
button, .alert {
// height: 100%;
line-height: 21px;
min-height: 0;
box-sizing: border-box;
margin: 0;
margin-left: .25em;
min-width: 1px;
align-self: stretch;
} }
} }

View file

@ -22,10 +22,6 @@
} }
.loadmore-error { .loadmore-error {
min-width: 6em;
text-align: center;
padding: 0 0.25em 0 0.25em;
margin: 0;
color: $fallback--fg; color: $fallback--fg;
color: var(--fg, $fallback--fg); color: var(--fg, $fallback--fg);
} }

View file

@ -6,21 +6,25 @@ import { filter, trim } from 'lodash'
const settings = { const settings = {
data () { data () {
const config = this.$store.state.config
return { return {
hideAttachmentsLocal: this.$store.state.config.hideAttachments, hideAttachmentsLocal: config.hideAttachments,
hideAttachmentsInConvLocal: this.$store.state.config.hideAttachmentsInConv, hideAttachmentsInConvLocal: config.hideAttachmentsInConv,
hideNsfwLocal: this.$store.state.config.hideNsfw, hideNsfwLocal: config.hideNsfw,
notificationVisibilityLocal: this.$store.state.config.notificationVisibility, notificationVisibilityLocal: config.notificationVisibility,
replyVisibilityLocal: this.$store.state.config.replyVisibility, replyVisibilityLocal: config.replyVisibility,
loopVideoLocal: this.$store.state.config.loopVideo, loopVideoLocal: config.loopVideo,
loopVideoSilentOnlyLocal: this.$store.state.config.loopVideoSilentOnly, loopVideoSilentOnlyLocal: config.loopVideoSilentOnly,
muteWordsString: this.$store.state.config.muteWords.join('\n'), muteWordsString: config.muteWords.join('\n'),
autoLoadLocal: this.$store.state.config.autoLoad, autoLoadLocal: config.autoLoad,
streamingLocal: this.$store.state.config.streaming, streamingLocal: config.streaming,
pauseOnUnfocusedLocal: this.$store.state.config.pauseOnUnfocused, pauseOnUnfocusedLocal: config.pauseOnUnfocused,
hoverPreviewLocal: this.$store.state.config.hoverPreview, hoverPreviewLocal: config.hoverPreview,
collapseMessageWithSubjectLocal: this.$store.state.config.collapseMessageWithSubject, collapseMessageWithSubjectLocal: typeof config.collapseMessageWithSubject === 'undefined'
stopGifs: this.$store.state.config.stopGifs, ? config.defaultCollapseMessageWithSubject
: config.collapseMessageWithSubject,
stopGifs: config.stopGifs,
loopSilentAvailable: loopSilentAvailable:
// Firefox // Firefox
Object.getOwnPropertyDescriptor(HTMLVideoElement.prototype, 'mozHasAudio') || Object.getOwnPropertyDescriptor(HTMLVideoElement.prototype, 'mozHasAudio') ||

View file

@ -23,6 +23,7 @@
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain;
} }
&.animated { &.animated {

View file

@ -4,12 +4,12 @@
<div class="title"> <div class="title">
{{title}} {{title}}
</div> </div>
<button @click.prevent="showNewStatuses" class="loadmore-button" v-if="timeline.newStatusCount > 0 && !timelineError">
{{$t('timeline.show_new')}}{{newStatusCountStr}}
</button>
<div @click.prevent class="loadmore-error alert error" v-if="timelineError"> <div @click.prevent class="loadmore-error alert error" v-if="timelineError">
{{$t('timeline.error_fetching')}} {{$t('timeline.error_fetching')}}
</div> </div>
<button @click.prevent="showNewStatuses" class="loadmore-button" v-if="timeline.newStatusCount > 0 && !timelineError">
{{$t('timeline.show_new')}}{{newStatusCountStr}}
</button>
<div @click.prevent class="loadmore-text" v-if="!timeline.newStatusCount > 0 && !timelineError"> <div @click.prevent class="loadmore-text" v-if="!timeline.newStatusCount > 0 && !timelineError">
{{$t('timeline.up_to_date')}} {{$t('timeline.up_to_date')}}
</div> </div>
@ -58,7 +58,6 @@
.timeline { .timeline {
.loadmore-text { .loadmore-text {
font-size: 14px;
opacity: 0.8; opacity: 0.8;
background-color: transparent; background-color: transparent;
color: $fallback--faint; color: $fallback--faint;
@ -66,11 +65,6 @@
} }
.loadmore-error { .loadmore-error {
font-size: 14px;
min-width: 6em;
text-align: center;
padding: 0 0.25em 0 0.25em;
margin: 0;
color: $fallback--fg; color: $fallback--fg;
color: var(--fg, $fallback--fg); color: var(--fg, $fallback--fg);
} }

View file

@ -16,6 +16,8 @@
.user-panel { .user-panel {
.profile-panel-background .panel-heading { .profile-panel-background .panel-heading {
background: transparent; background: transparent;
flex-direction: column;
align-items: stretch;
} }
} }
</style> </style>