From 71ada3be39e978fcef90e7727444749eeac40c39 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Sun, 23 Jun 2024 21:13:34 +0800 Subject: [PATCH] fix: template editor window layout --- addon/chrome/content/templateEditor.xhtml | 45 +++++++++++++++++----- addon/chrome/content/workspaceWindow.xhtml | 1 + addon/locale/en-US/addon.ftl | 2 + addon/locale/it-IT/addon.ftl | 2 + addon/locale/ru-RU/addon.ftl | 2 + addon/locale/tr-TR/addon.ftl | 2 + addon/locale/zh-CN/addon.ftl | 2 + 7 files changed, 47 insertions(+), 9 deletions(-) diff --git a/addon/chrome/content/templateEditor.xhtml b/addon/chrome/content/templateEditor.xhtml index a40b455..ebe5e95 100644 --- a/addon/chrome/content/templateEditor.xhtml +++ b/addon/chrome/content/templateEditor.xhtml @@ -48,12 +48,14 @@ padding: 0; margin: 0; height: 100%; - overflow-x: hidden; - overflow-y: auto; word-wrap: break-word; } .viewport { + flex-grow: 1; + flex-shrink: 1; margin: 0 5px 0 5px; + overflow-x: hidden; + overflow-y: auto; } .viewport-container { padding: 0; @@ -63,6 +65,8 @@ display: flex; flex-direction: row; overflow: hidden; + border-bottom: var(--material-border); + background: var(--material-background); } .footer-container { padding: 5px; @@ -102,15 +106,33 @@ type="text/css" href="chrome://__addonRef__/content/lib/css/github-markdown.css" /> + + + + + + +
-
+
-
-
-
+ + + +
@@ -122,13 +144,18 @@ onmousedown="this.focus()" >
-
-
+ + +
-
+