diff options
author | Kerwin Bryant <kerwin612@qq.com> | 2023-09-13 17:08:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 09:08:45 +0000 |
commit | a38eca3f52f691667f8075263badffba4e9b97ae (patch) | |
tree | 50e656dca8d99f4c45e9ff5b26fea49059c5dbd8 /templates/repo/settings | |
parent | 0989f437df8d006a6acb13fe14e1ed05445582c9 (diff) | |
download | gitea-a38eca3f52f691667f8075263badffba4e9b97ae.tar.gz gitea-a38eca3f52f691667f8075263badffba4e9b97ae.zip |
Fix Fomantic's line-height causing vertical scrollbars to appear (#26961)
Before:

After:

---
1. **Remove the scroll bar exception that in the a tag**
2. **Reduce the actual width of the a tag to the actual width of the
content**

As shown in the screenshot, the red box area should not be clickable
Diffstat (limited to 'templates/repo/settings')
-rw-r--r-- | templates/repo/settings/webhook/base_list.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo/settings/webhook/base_list.tmpl b/templates/repo/settings/webhook/base_list.tmpl index 1bc9447110..b0e8ace410 100644 --- a/templates/repo/settings/webhook/base_list.tmpl +++ b/templates/repo/settings/webhook/base_list.tmpl @@ -60,7 +60,9 @@ {{range .Webhooks}} <div class="item truncated-item-container"> <span class="text {{if eq .LastStatus 1}}green{{else if eq .LastStatus 2}}red{{else}}grey{{end}} gt-mr-3">{{svg "octicon-dot-fill" 22}}</span> - <a class="text truncate gt-f1 gt-mr-3" title="{{.URL}}" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a> + <div class="text truncate gt-f1 gt-mr-3"> + <a title="{{.URL}}" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a> + </div> <a class="muted gt-p-3" href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a> <a class="delete-button gt-p-3" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a> </div> |