diff --git a/frontend/css/style.css b/frontend/css/style.css index 0191870..d1f1d57 100644 --- a/frontend/css/style.css +++ b/frontend/css/style.css @@ -1393,18 +1393,40 @@ body.theme-light .favorite-btn { font-family: var(--font-display); font-size: 18px; margin: 0 0 16px 0; + /* Clear of the copy/close buttons parked in the corner. */ + padding-right: 140px; } -.info-close { +/* Copy and close sit together in the card's top corner, above the title. */ +.info-actions { position: absolute; right: 16px; top: 16px; + display: flex; + align-items: center; + gap: 8px; +} + +.info-copy { + width: auto; + padding: 6px 12px; + font-size: 12px; + white-space: nowrap; +} + +.info-copy.is-copied { + border-color: var(--border-hover); + color: var(--accent); +} + +.info-close { border: none; background: var(--bg-tertiary); color: var(--text-primary); border-radius: 50%; width: 32px; height: 32px; + flex-shrink: 0; cursor: pointer; } diff --git a/frontend/index.html b/frontend/index.html index fbfbc4c..42410a8 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -184,7 +184,10 @@