Simplify points abbreviation implementation

This commit is contained in:
Svilen Markov
2025-01-14 11:55:52 +00:00
parent bb80637e72
commit a7e235441b
2 changed files with 2 additions and 11 deletions

View File

@@ -1038,18 +1038,9 @@ details[open] .summary::after {
} }
@container widget (max-width: 550px) { @container widget (max-width: 550px) {
.forum-post-autohide { .forum-post-autohide, .forum-post-abbr-pts {
display: none; display: none;
} }
.forum-post-points-word {
font-size: 0;
}
.forum-post-points-word::after {
content: "pts";
font-size: var(--font-size-base);
}
} }
.bookmarks-group { .bookmarks-group {

View File

@@ -35,7 +35,7 @@
{{- end }} {{- end }}
<ul class="list-horizontal-text flex-nowrap text-compact"> <ul class="list-horizontal-text flex-nowrap text-compact">
<li {{ dynamicRelativeTimeAttrs .TimePosted }}></li> <li {{ dynamicRelativeTimeAttrs .TimePosted }}></li>
<li class="shrink-0">{{ .Score | formatApproxNumber }} <span class="forum-post-points-word">points</span></li> <li class="shrink-0">{{ .Score | formatApproxNumber }} p<span class="forum-post-abbr-pts">oin</span>ts</li>
<li class="shrink-0{{ if .TargetUrl }} forum-post-autohide{{ end }}">{{ .CommentCount | formatApproxNumber }} comments</li> <li class="shrink-0{{ if .TargetUrl }} forum-post-autohide{{ end }}">{{ .CommentCount | formatApproxNumber }} comments</li>
{{- if .TargetUrl }} {{- if .TargetUrl }}
<li class="min-width-0"><a class="visited-indicator text-truncate block" href="{{ .TargetUrl }}" target="_blank" rel="noreferrer">{{ .TargetUrlDomain }}</a></li> <li class="min-width-0"><a class="visited-indicator text-truncate block" href="{{ .TargetUrl }}" target="_blank" rel="noreferrer">{{ .TargetUrlDomain }}</a></li>