feat(desktop): permissions

This commit is contained in:
Adam
2025-12-27 05:16:39 -06:00
parent c523ca4127
commit 21eba5f987
17 changed files with 586 additions and 60 deletions

View File

@@ -361,3 +361,98 @@
overflow: hidden;
}
}
[data-component="tool-part-wrapper"] {
width: 100%;
&[data-permission="true"] {
position: sticky;
top: var(--sticky-header-height, 80px);
bottom: 0px;
z-index: 10;
border-radius: 6px;
border: none;
box-shadow: var(--shadow-xs-border-base);
background-color: var(--surface-raised-base);
overflow: visible;
&::before {
content: "";
position: absolute;
inset: -1.5px;
border-radius: 7.5px;
border: 1.5px solid transparent;
background:
linear-gradient(var(--background-base) 0 0) padding-box,
conic-gradient(
from var(--border-angle),
transparent 0deg,
transparent 270deg,
var(--border-warning-strong, var(--border-warning-selected)) 300deg,
var(--border-warning-base) 360deg
)
border-box;
animation: chase-border 1.5s linear infinite;
pointer-events: none;
z-index: -1;
}
& > *:first-child {
border-top-left-radius: 6px;
border-top-right-radius: 6px;
overflow: hidden;
}
& > *:last-child {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
overflow: hidden;
}
[data-component="collapsible"] {
border: none;
}
[data-component="card"] {
border: none;
}
}
}
@property --border-angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
@keyframes chase-border {
from {
--border-angle: 0deg;
}
to {
--border-angle: 360deg;
}
}
[data-component="permission-prompt"] {
display: flex;
flex-direction: column;
padding: 8px 12px;
background-color: var(--surface-raised-strong);
border-radius: 0 0 6px 6px;
[data-slot="permission-message"] {
display: none;
font-family: var(--font-family-sans);
font-size: var(--font-size-small);
font-weight: var(--font-weight-medium);
line-height: var(--line-height-large);
}
[data-slot="permission-actions"] {
display: flex;
align-items: center;
gap: 8px;
justify-content: flex-end;
}
}