aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2025-05-09 17:14:21 +0200
committerGitHub <noreply@github.com>2025-05-09 17:14:21 +0200
commit8b16ab719cab24805beb2189af7ee960ca94d524 (patch)
tree904c17e32ed1b4b12b69d64d067d037a13fd57e7 /web_src/js
parent2ecd73d2e586cd4ff2001246d54c4affe0e1ccec (diff)
downloadgitea-8b16ab719cab24805beb2189af7ee960ca94d524.tar.gz
gitea-8b16ab719cab24805beb2189af7ee960ca94d524.zip
Merge and tweak markup editor expander CSS (#34409)
- Merge the CSS for the two expanders (text-expander-element and tribute.js) into one file - Fix overflow issues - Remove min-width - Various other tweaks like borders, colors, padding, gaps. text-expander: <img width="645" alt="Screenshot 2025-05-09 at 02 21 24" src="https://github.com/user-attachments/assets/33276dc4-38e8-45e1-8216-2a4baa9bc039" /> tribute: <img width="624" alt="Screenshot 2025-05-09 at 02 21 37" src="https://github.com/user-attachments/assets/91fbcd1a-9bfc-40fd-93f0-a05b4bd4c98d" /> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/features/comp/TextExpander.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/features/comp/TextExpander.ts b/web_src/js/features/comp/TextExpander.ts
index 5be234629d..2d79fe5029 100644
--- a/web_src/js/features/comp/TextExpander.ts
+++ b/web_src/js/features/comp/TextExpander.ts
@@ -97,6 +97,7 @@ export function initTextExpander(expander: TextExpanderElement) {
li.append(img);
const nameSpan = document.createElement('span');
+ nameSpan.classList.add('name');
nameSpan.textContent = name;
li.append(nameSpan);