From a55840178441ad9b22f85e076a257e070a0a41b1 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Sun, 19 Jan 2025 19:24:55 -0500 Subject: [PATCH 1/2] noscript skin viewer fallback Resolves https://github.com/unmojang/drasl/issues/30 --- public/style.css | 5 +++-- view/player.tmpl | 9 ++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/public/style.css b/public/style.css index 36f9a6d..ec166c5 100644 --- a/public/style.css +++ b/public/style.css @@ -234,8 +234,9 @@ pre { text-align: center; } -#skin-canvas { - display: inline-block; +.texture-preview { + width: 256px; + image-rendering: pixelated; } .list-profile-picture { diff --git a/view/player.tmpl b/view/player.tmpl index 0f6c2bb..cf5bd95 100644 --- a/view/player.tmpl +++ b/view/player.tmpl @@ -19,7 +19,13 @@
{{ .Player.UUID }}
{{ .PlayerID }}
{{/* prettier-ignore-end */}} {{ if .SkinURL }} -
+
+
{{ else }} @@ -160,6 +166,7 @@ {{ end }} diff --git a/view/player.tmpl b/view/player.tmpl index cf5bd95..295b0ff 100644 --- a/view/player.tmpl +++ b/view/player.tmpl @@ -26,7 +26,7 @@ {{ end }} - +
{{ else }} No skin yet. @@ -51,6 +51,12 @@ {{ end }} {{ if or .App.Config.AllowSkins .User.IsAdmin }}

Skin

+ {{ if .SkinURL }} +

+ Current skin: + +

+ {{ end }}


@@ -95,6 +101,12 @@ {{ end }} {{ if or .App.Config.AllowCapes .User.IsAdmin }}

Cape

+ {{ if .CapeURL }} +

+ Current cape: + +

+ {{ end }}


@@ -166,7 +178,6 @@