packages/web: allow sharing analysis and comparison views independently

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I16408e124ebcb36e8452d9c261f6d42f6a6a6964
This commit is contained in:
raf 2026-04-16 08:40:10 +03:00
commit 8d7bd7bb05
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 339 additions and 1 deletions

View file

@ -444,6 +444,16 @@ body {
transform: scale(1.05);
}
.action-btn.share {
background: var(--accent);
color: white;
}
.action-btn.share:hover {
background: var(--accent-hover);
transform: scale(1.05);
}
.action-btn.clear {
background: var(--bg-secondary);
color: var(--text-secondary);
@ -1496,6 +1506,26 @@ body {
color: white;
}
.share-btn {
display: flex;
align-items: center;
gap: 0.375rem;
height: calc(0.75rem * 2 + 1rem + 2px);
padding: 0 0.875rem;
background: var(--accent);
border: none;
color: white;
border-radius: 0.375rem;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.share-btn:hover {
background: var(--accent-hover);
}
.compare-placeholder {
text-align: center;
padding: 4rem;
@ -1768,3 +1798,30 @@ body {
font-size: 0.75rem;
color: var(--text-muted);
}
.toast {
position: fixed;
bottom: 6rem;
left: 50%;
transform: translateX(-50%);
padding: 0.875rem 1.5rem;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 0.5rem;
color: var(--text-primary);
font-size: 0.875rem;
box-shadow: var(--shadow);
z-index: 1000;
animation: toast-in 0.2s ease;
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateX(-50%) translateY(0.5rem);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}