From 669f83648896a2ae5f18cfb863c6cda832740acf Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 22 Apr 2025 17:58:50 +0800 Subject: [PATCH] :lipstick: Style: update SVG height to be compatible with Safari browser --- assets/css/_page/_single.scss | 5 ++++- layouts/partials/init/index.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/css/_page/_single.scss b/assets/css/_page/_single.scss index 79be06b6..5f43e2bb 100644 --- a/assets/css/_page/_single.scss +++ b/assets/css/_page/_single.scss @@ -366,7 +366,10 @@ img { max-width: 100%; - min-height: 1em; + // SVG performs differently in Safari compared to other browsers + &:not([src*='.svg']) { + min-height: 1em; + } &.version { height: 1.25em; diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index e133a24b..9cbd6eaf 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.20-de72a8c8" -}} +{{- .Scratch.Set "version" "v0.3.20-e62c0f24" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}