Don't center file links in snippets.

This commit is contained in:
Asaf Gartner 2022-08-09 12:33:52 +03:00
parent b62954ba37
commit 822a489c09
4 changed files with 14 additions and 11 deletions

View File

@ -9393,13 +9393,13 @@ span.icon-rss::before {
.timeline-item .avatar-icon.big {
width: 3.875rem;
height: 3.875rem; } }
.timeline-item .timeline-content-box {
.timeline-item .timeline-content-box.timeline-item-bg {
background-color: rgba(0, 0, 0, 0.2);
background-color: var(--timeline-content-background); }
.timeline-item .timeline-content-box > * {
display: block;
max-width: 100%;
max-height: 80vh; }
.timeline-item .timeline-content-box > * {
display: block;
max-width: 100%;
max-height: 80vh; }
.timeline-modal .container {
max-height: 100vh; }

View File

@ -19,7 +19,9 @@
}
.timeline-content-box {
@include usevar(background-color, timeline-content-background);
&.timeline-item-bg {
@include usevar(background-color, timeline-content-background);
}
> * {
display: block;

View File

@ -51,7 +51,7 @@
{{ end }}
{{ range .EmbedMedia }}
<div class="timeline-content-box mt3 {{ if eq .Type mediaembed }}embed{{ end }} br2 overflow-hidden flex justify-center">
<div class="timeline-content-box mt3 {{ if eq .Type mediaembed }}embed{{ end }} br2 overflow-hidden flex {{ if not (eq .Type mediaunknown) }}timeline-item-bg justify-center{{ end }}">
{{ if eq .Type mediaimage }}
<img src="{{ .AssetUrl }}">
{{ else if eq .Type mediavideo }}

View File

@ -246,8 +246,9 @@ var HMNTemplateFuncs = template.FuncMap{
}
},
"mediaimage": func() TimelineItemMediaType { return TimelineItemMediaTypeImage },
"mediavideo": func() TimelineItemMediaType { return TimelineItemMediaTypeVideo },
"mediaaudio": func() TimelineItemMediaType { return TimelineItemMediaTypeAudio },
"mediaembed": func() TimelineItemMediaType { return TimelineItemMediaTypeEmbed },
"mediaimage": func() TimelineItemMediaType { return TimelineItemMediaTypeImage },
"mediavideo": func() TimelineItemMediaType { return TimelineItemMediaTypeVideo },
"mediaaudio": func() TimelineItemMediaType { return TimelineItemMediaTypeAudio },
"mediaembed": func() TimelineItemMediaType { return TimelineItemMediaTypeEmbed },
"mediaunknown": func() TimelineItemMediaType { return TimelineItemMediaTypeUnknown },
}