diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 23b4e94a06deb..e71b4088044ba 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -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,
diff --git a/web_src/js/features/clipboard.js b/web_src/js/features/clipboard.js
index 8be5505c8bdf8..daf7e2ae2d0ac 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;
}