visible profile banner

This commit is contained in:
localhost_frssoft 2023-11-06 02:31:53 +03:00
parent 306b0fe3b3
commit baa1176144
3 changed files with 12 additions and 1 deletions

1
README
View file

@ -11,6 +11,7 @@ Changes (localhost_custom fork):
- tag timeline - tag timeline
- visible edited post time - visible edited post time
- visible quoted post (status in status) - visible quoted post (status in status)
- visible profile banner in spoiler
- hide boosts in spoiler - hide boosts in spoiler
- hide NSFW content and attachments in spoiler - hide NSFW content and attachments in spoiler
- some micro visual changes - some micro visual changes

View file

@ -632,7 +632,7 @@ kbd {
} }
.profile-banner { .profile-banner {
height: 120px; width: 100%;
} }
.block-label, .block-label,

View file

@ -130,6 +130,16 @@
{{- EmojiFilter .User.Note .User.Emojis | Raw -}} {{- EmojiFilter .User.Note .User.Emojis | Raw -}}
</div> </div>
</details> </details>
{{if .User.Header}}
<details>
<summary>Banner</summary>
<div class="user-profile-img-container">
<a class="img-link" href="{{.User.Header}}" target="_blank">
<img class="profile-banner" src="{{.User.Header}}" alt="profile-header" height="500" loading="lazy" />
</a>
</div>
</details>
{{end}}
{{if .User.Fields}} {{if .User.Fields}}
<div class="user-fields"> <div class="user-fields">
{{range .User.Fields}} {{range .User.Fields}}