diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index d4b43e7e3a..3a1f39d2ce 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -2034,13 +2034,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 {
@@ -2060,6 +2055,7 @@
padding: 5px 10px;
font-size: 1.2em;
line-height: 1.4;
+ flex: 1;
}
#cite-repo-modal #citation-panel #citation-copy-apa,
diff --git a/web_src/js/features/clipboard.js b/web_src/js/features/clipboard.js
index 8be5505c8b..daf7e2ae2d 100644
--- a/web_src/js/features/clipboard.js
+++ b/web_src/js/features/clipboard.js
@@ -15,10 +15,8 @@ export function initGlobalCopyToClipboardListener() {
e.preventDefault();
- let text;
- if (target.hasAttribute('data-clipboard-text')) {
- text = target.getAttribute('data-clipboard-text');
- } else {
+ let text = target.getAttribute('data-clipboard-text');
+ if (!text) {
text = document.querySelector(target.getAttribute('data-clipboard-target'))?.value;
}