Fix overlay

This commit is contained in:
VnPower
2024-08-21 15:35:13 +07:00
parent 5ba5ee3b52
commit a166dce8ab
4 changed files with 29 additions and 29 deletions
+3 -3
View File
@@ -627,9 +627,9 @@ nav .sidebar-item img {
.artwork-container .artwork .artwork-additional,
.artwork-container-scroll .artwork .artwork-additional {
position: absolute;
top: 4px;
left: 4px;
right: 4px;
top: 0;
left: 0;
right: 0;
box-sizing: border-box;
display: flex;
align-items: flex-start;
+3 -3
View File
@@ -733,9 +733,9 @@ nav {
.artwork-additional {
position: absolute;
top: 4px;
left: 4px;
right: 4px;
top: 0;
left: 0;
right: 0;
box-sizing: border-box;
display: flex;
align-items: flex-start;
+10 -9
View File
@@ -1,20 +1,21 @@
{{ range . }}
{{ target := CookieList["pixivfe-ThumbnailToNewTab"] }}
<div class="artwork-small artwork">
<div class="artwork-additional">
<div class="artwork-position">{{ .Rank }}</div>
{{ if .Pages > 1 }}
<div class="artwork-page-count"><span>&boxbox; {{ .Pages }}</span></div>
{{ end }}
{{ if .IllustType == 2 }}
<div class="artwork-page-count"><span>&#9654;</span></div>
{{ end }}
</div>
<div class="artwork-image">
<a target="{{ target }}" href="/artworks/{{ .ID }}#checkpoint">
<img src="{{ .Image }}" alt="{{ .Title }}" />
</a>
<div class="artwork-additional">
<div class="artwork-position">{{ .Rank }}</div>
{{ if .Pages > 1 }}
<div class="artwork-page-count"><span>&boxbox; {{ .Pages }}</span></div>
{{ end }}
{{ if .IllustType == 2 }}
<div class="artwork-page-count"><span>&#9654;</span></div>
{{ end }}
</div>
</div>
<div class="artwork-title">
<a target="{{ target }}" href="/artworks/{{ .ID }}#checkpoint"> {{ .Title }} </a>
+13 -14
View File
@@ -1,19 +1,18 @@
{{ target := CookieList["pixivfe-ThumbnailToNewTab"] }}
<div class="artwork-additional">
{{ if .XRestrict != 0 }}
<div class="artwork-profanity-label">
<span>{{ if .XRestrict == 1 }}R-18{{ else }}R-18G{{ end }}</span>
</div>
{{ end }} {{ if .Pages > 1 }}
<div class="artwork-page-count"><span>&boxbox; {{ .Pages }}</span></div>
{{ end }}
{{ if .IllustType == 2 }}
<div class="artwork-page-count"><span>&#9654;</span></div>
{{ end }}
</div>
<div class="artwork-image">
<div class="artwork-additional">
{{ if .XRestrict != 0 }}
<div class="artwork-profanity-label">
<span>{{ if .XRestrict == 1 }}R-18{{ else }}R-18G{{ end }}</span>
</div>
{{ end }} {{ if .Pages > 1 }}
<div class="artwork-page-count"><span>&boxbox; {{ .Pages }}</span></div>
{{ end }}
{{ if .IllustType == 2 }}
<div class="artwork-page-count"><span>&#9654;</span></div>
{{ end }}
</div>
<a target="{{ target }}" href="/artworks/{{ .ID }}#checkpoint">
<img src="{{ .Thumbnail }}" alt="{{ .Title }}" loading="lazy" />
</a>