소스 검색

Further simplify points abbreviation implementation

Svilen Markov 5 달 전
부모
커밋
80b43d3e0c
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      internal/glance/static/main.css
  2. 1 1
      internal/glance/templates/forum-posts.html

+ 1 - 1
internal/glance/static/main.css

@@ -1038,7 +1038,7 @@ details[open] .summary::after {
 }
 
 @container widget (max-width: 550px) {
-    .forum-post-autohide, .forum-post-abbr-pts {
+    .forum-post-autohide {
         display: none;
     }
 }

+ 1 - 1
internal/glance/templates/forum-posts.html

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