aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css/form.css
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-09 18:18:45 +0200
committerGitHub <noreply@github.com>2023-04-09 12:18:45 -0400
commit9f6bc7c6f4f657c3245db7cea44c85454d5d8606 (patch)
treeb76705594765c611586d98e1976c90300438fbf9 /web_src/css/form.css
parent8bc8ca1953e9edfe1677378472c321b3d33875fd (diff)
downloadgitea-9f6bc7c6f4f657c3245db7cea44c85454d5d8606.tar.gz
gitea-9f6bc7c6f4f657c3245db7cea44c85454d5d8606.zip
Replace tribute with text-expander-element for textarea (#23985)
The completion popup now behaves now much more as expected than before for the raw textarea: - You can press <kbd>Tab</kbd> or <kbd>Enter</kbd> once the completion popup is open to accept the selected item - The menu does not close automatically when moving the cursor - When you delete text, previously correct suggestions are shown again - If you delete all text until the opening char (`@` or `:`) after applying a suggestion, the popup reappears again - Menu UI has been improved <img width="278" alt="Screenshot 2023-04-07 at 19 43 42" src="https://user-images.githubusercontent.com/115237/230653601-d6517b9f-0988-445e-aa57-5ebfaf5039f3.png">
Diffstat (limited to 'web_src/css/form.css')
-rw-r--r--web_src/css/form.css17
1 files changed, 17 insertions, 0 deletions
diff --git a/web_src/css/form.css b/web_src/css/form.css
index ffcf5794b9..85d1136de8 100644
--- a/web_src/css/form.css
+++ b/web_src/css/form.css
@@ -1,3 +1,20 @@
+.ui.input textarea,
+.ui.form textarea,
+.ui.form input:not([type]),
+.ui.form input[type="date"],
+.ui.form input[type="datetime-local"],
+.ui.form input[type="email"],
+.ui.form input[type="number"],
+.ui.form input[type="password"],
+.ui.form input[type="search"],
+.ui.form input[type="tel"],
+.ui.form input[type="time"],
+.ui.form input[type="text"],
+.ui.form input[type="file"],
+.ui.form input[type="url"] {
+ transition: none;
+}
+
input,
textarea,
.ui.input > input,