diff --git a/ai_answers.py b/ai_answers.py index 5a93655..8729c41 100644 --- a/ai_answers.py +++ b/ai_answers.py @@ -153,11 +153,11 @@ INTERACTIVE_CSS = ''' font-size: 0.78em; cursor: pointer; width: auto; - max-width: 160px; + max-width: 6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 6l5-6 5 6z' fill='%234a9eff'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right; - background-size: 10%; + background-size: 15%; display: none; vertical-align: middle; line-height: 1.4; @@ -187,7 +187,6 @@ INTERACTIVE_HTML = ''' -
@@ -1402,18 +1401,28 @@ class SXNGPlugin(Plugin): animation: sxng-fade-in 0.3s ease-out; }} }} + .sxng-ai-header {{ + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 4px; + margin-top: -4px; + }} .sxng-ai-label {{ font-size: 1.05em; font-weight: 700; - margin-bottom: 4px; - margin-top: -4px; letter-spacing: 0.04em; text-transform: none; color: var(--color-base-font, #333); }} {interactive_css} - AI Overview +
+ + AI Overview + + +

{interactive_html}