From 84c1358ecb9dd6ca5dee0f2cfd6d7c56c51643a8 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 4 Jan 2026 14:22:31 +0800 Subject: [PATCH] fix(code): adjust max-width of code block titles for better layout --- assets/css/_partials/_single/_code.scss | 2 +- layouts/_partials/init/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/css/_partials/_single/_code.scss b/assets/css/_partials/_single/_code.scss index 5b6c2b5a..79524f12 100644 --- a/assets/css/_partials/_single/_code.scss +++ b/assets/css/_partials/_single/_code.scss @@ -211,7 +211,7 @@ pre { transform: translateX(-50%); background-color: var(#{$rootPrefix}code-header-background-color); padding-inline: 1em; - max-width: 80%; + max-width: calc(100% - 200px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 27ee6d1e..7f6ca2cd 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-rc-20260103125638-00870fda" -}} +{{- hugo.Store.Set "version" "v0.4.0-rc-20260104062232-a7921396" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}