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,7 +9393,7 @@ 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 > * {

View File

@ -19,7 +19,9 @@
}
.timeline-content-box {
&.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

@ -250,4 +250,5 @@ var HMNTemplateFuncs = template.FuncMap{
"mediavideo": func() TimelineItemMediaType { return TimelineItemMediaTypeVideo },
"mediaaudio": func() TimelineItemMediaType { return TimelineItemMediaTypeAudio },
"mediaembed": func() TimelineItemMediaType { return TimelineItemMediaTypeEmbed },
"mediaunknown": func() TimelineItemMediaType { return TimelineItemMediaTypeUnknown },
}