1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fix Citation modal responsiveness and clipboard copy (#29799)

The modal was broken in two ways:

- On small screens, the input box was partially hanging outside the
modal. Fixed with flexbox and increased modal width.
- The clipboard copy was not working because the modal had both
`data-clipboard-text` and `data-clipboard-target`, while we only support
one of those. Made a small tweak in clipboard as well so that it will
still fall back to target if text is empty.
This commit is contained in:
silverwind
2024-03-15 03:38:13 +01:00
committed by GitHub
parent 256a1eeb9a
commit 94512ee062
4 changed files with 12 additions and 20 deletions

View File

@@ -2035,13 +2035,8 @@
}
#cite-repo-modal #citation-panel {
width: 500px;
}
@media (max-width: 767.98px) {
#cite-repo-modal #citation-panel {
width: 100%;
}
display: flex;
width: 100%;
}
#cite-repo-modal #citation-panel input {
@@ -2061,6 +2056,7 @@
padding: 5px 10px;
font-size: 1.2em;
line-height: 1.4;
flex: 1;
}
#cite-repo-modal #citation-panel #citation-copy-apa,