From 404a704d5e705462841ed792466711fb068d59cb Mon Sep 17 00:00:00 2001 From: tinqs-limited Date: Thu, 21 May 2026 00:37:31 +0100 Subject: [PATCH] fix: Fullscreen button in header bar + full-width iframe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fullscreen button added to Preview/Source button group (not overlay) - iframe breaks out of container: width:100vw with negative margins - removed overlay expand icon — redundant with header button Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/repo/view_file.tmpl | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 103b32bd4a..4ab41e4db0 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -39,6 +39,11 @@ {{end}} {{/* Gitea icon toggles for markup etc.; HTML uses Preview/Source buttons above only */}} @@ -137,15 +142,9 @@ {{else if .IsHTMLFile}} {{if .HTMLPreviewEnabled}} -
- {{svg "octicon-screen-full" 14}} - -
+ {{else}} -
- {{svg "octicon-screen-full" 14}} - -
+ {{end}} {{else}}