diff options
author | silverwind <me@silverwind.io> | 2023-06-20 07:38:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 05:38:52 +0000 |
commit | 8e89eb8f43eb99694d1fdb0d069016db1d3f837e (patch) | |
tree | 7f6c0fd1cd6388ee5cded3cb65d28f4203313eb9 /templates/shared | |
parent | dfefe860456ffc94cac25d4670a3ddbeb3c18d35 (diff) | |
download | gitea-8e89eb8f43eb99694d1fdb0d069016db1d3f837e.tar.gz gitea-8e89eb8f43eb99694d1fdb0d069016db1d3f837e.zip |
Update JS dependencies, remove space after emoji completion (#25266) (#25352)
Manual backport of #25266 because of lockfile conflicts.
- Update all JS dependencies
- Enable stylint
[`media-feature-name-value-no-unknown`](https://stylelint.io/user-guide/rules/media-feature-name-value-no-unknown)
- Make use of new features in webpack and text-expander-element
- Tested Swagger and Mermaid
To explain the `text-expander-element` change: Before this version, the
element added a unavoidable space after emoji completion. Now that
https://github.com/github/text-expander-element/pull/36 is in, we gain
control over this space and I opted to remove it for emoji completion
and retain it for `@` mentions.
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/shared')
-rw-r--r-- | templates/shared/combomarkdowneditor.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/combomarkdowneditor.tmpl b/templates/shared/combomarkdowneditor.tmpl index ace9d90815..26a51b369c 100644 --- a/templates/shared/combomarkdowneditor.tmpl +++ b/templates/shared/combomarkdowneditor.tmpl @@ -44,7 +44,7 @@ Template Attributes: <button class="markdown-toolbar-button markdown-switch-easymde" data-tooltip-content="{{.locale.Tr "editor.buttons.switch_to_legacy.tooltip"}}">{{svg "octicon-arrow-switch"}}</button> </div> </markdown-toolbar> - <text-expander keys=": @"> + <text-expander keys=": @" suffix=""> <textarea class="markdown-text-editor js-quick-submit"{{if .TextareaName}} name="{{.TextareaName}}"{{end}}{{if .TextareaPlaceholder}} placeholder="{{.TextareaPlaceholder}}"{{end}}{{if .TextareaAriaLabel}} aria-label="{{.TextareaAriaLabel}}"{{end}}>{{.TextareaContent}}</textarea> </text-expander> <script> |