summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-09 14:07:43 +0200
committerGitHub <noreply@github.com>2023-04-09 08:07:43 -0400
commitf2b98d825978670f365bb754e65f44124ce4e658 (patch)
tree21418e6e22b7cf13212da9580464e0ab22644cf0 /web_src
parenta519aac6d5e55b2ad5c740e2fb95d70f5935f51e (diff)
downloadgitea-f2b98d825978670f365bb754e65f44124ce4e658.tar.gz
gitea-f2b98d825978670f365bb754e65f44124ce4e658.zip
Show errors for KaTeX and mermaid on the preview tab (#24009)
There is a conflicting fomantic rule that hid the error messages inside the markdown preview tab for things like mermaid or katex. Overruled it to always show these errors. <img width="774" alt="image" src="https://user-images.githubusercontent.com/115237/230738528-322814c1-8994-495e-b901-bbb79b924ccb.png">
Diffstat (limited to 'web_src')
-rw-r--r--web_src/css/markup/content.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css
index 049121e24c..90f8c7091e 100644
--- a/web_src/css/markup/content.css
+++ b/web_src/css/markup/content.css
@@ -541,6 +541,7 @@
}
.markup-block-error {
+ display: block !important; /* override fomantic .ui.form .error.message {display: none} */
border: 1px solid var(--color-error-border) !important;
margin-bottom: 0 !important;
border-bottom-left-radius: 0 !important;