Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
299 changes: 0 additions & 299 deletions src/web-ui/src/infrastructure/config/components/AIFeaturesConfig.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,311 +110,12 @@
background: transparent;
}

&__pet-picker {
width: 100%;
display: block;
}

&__pet-row-heading {
width: 100%;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: $size-gap-3;
}

&__pet-row-copy {
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}

&__pet-row-title {
color: var(--color-text-primary);
font-size: var(--font-size-sm);
font-weight: var(--font-weight-medium);
line-height: var(--line-height-base);
}

&__pet-row-description {
color: var(--color-text-secondary);
font-size: var(--font-size-xs);
font-weight: var(--font-weight-normal);
line-height: var(--line-height-relaxed);
}

&__pet-select {
min-width: 0;
}

&__pet-select .select__trigger {
min-height: 38px;
}

&__pet-select .select__dropdown {
max-height: 320px;
}

&__pet-actions {
display: flex;
align-items: center;
gap: $size-gap-2;
white-space: nowrap;
}

&__pet-chooser {
min-width: 0;
display: flex;
flex-direction: column;
gap: $size-gap-2;
}

&__pet-expand-button {
width: 100%;
min-width: 0;
min-height: 48px;
display: flex;
align-items: center;
justify-content: space-between;
gap: $size-gap-3;
padding: 5px 10px 5px 8px;
border: 1px solid var(--border-subtle);
border-radius: var(--size-radius-sm);
color: var(--color-text-primary);
background: var(--element-bg-subtle);
cursor: pointer;
transition:
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease;
}

&__pet-expand-button:hover {
border-color: var(--border-medium);
background: var(--element-bg-soft);
}

&__pet-expand-button:focus-visible {
outline: 2px solid var(--color-accent-500);
outline-offset: 2px;
}

&__pet-expand-button svg {
flex-shrink: 0;
transition: transform 0.16s ease;
}

&__pet-expand-chevron--open {
transform: rotate(180deg);
}

&__pet-expand-current {
min-width: 0;
display: flex;
align-items: center;
gap: $size-gap-3;
}

&__pet-list {
max-height: min(360px, 52vh);
overflow-y: auto;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: $size-gap-2;
padding: 12px;
border: 1px solid var(--border-subtle);
border-radius: var(--size-radius-sm);
background: color-mix(in srgb, var(--element-bg-subtle) 52%, transparent);
}

&__pet-list-group {
grid-column: 1 / -1;
padding: 6px 2px 2px;
color: var(--color-text-muted);
font-size: var(--font-size-xs);
font-weight: var(--font-weight-medium);
line-height: var(--line-height-tight);
letter-spacing: 0;
}

&__pet-select-option {
min-width: 0;
width: 100%;
min-height: 64px;
display: grid;
grid-template-columns: minmax(0, 1fr) max-content;
align-items: center;
gap: $size-gap-2;
padding: 9px 10px;
border: 1px solid var(--border-subtle);
border-radius: var(--size-radius-sm);
color: var(--color-text-primary);
text-align: left;
background: color-mix(in srgb, var(--element-bg-base) 74%, transparent);
cursor: pointer;
transition:
border-color 0.16s ease,
background 0.16s ease,
box-shadow 0.16s ease;
}

&__pet-select-option:hover,
&__pet-select-option:focus-visible {
border-color: var(--border-medium);
background: color-mix(in srgb, var(--element-bg-soft) 84%, transparent);
outline: none;
}

&__pet-select-option:focus-visible {
box-shadow: 0 0 0 2px var(--color-accent-500);
}

&__pet-select-option--selected {
border-color: color-mix(in srgb, var(--color-accent-500) 58%, var(--border-subtle));
background: color-mix(in srgb, var(--color-accent-500) 10%, var(--element-bg-base));
}

&__pet-select-option-main {
min-width: 0;
flex: 1;
display: flex;
align-items: center;
gap: $size-gap-3;
}

&__pet-select-delete {
flex-shrink: 0;
}

&__pet-select-actions {
min-width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: flex-end;
position: relative;
}

&__pet-select-check {
flex-shrink: 0;
color: var(--color-accent-500);
transition: opacity 0.14s ease;
}

&__pet-select-delete {
position: absolute;
inset: 0;
opacity: 0;
pointer-events: none;
transition: opacity 0.14s ease;
}

&__pet-select-option:hover &__pet-select-delete,
&__pet-select-option:focus-within &__pet-select-delete {
opacity: 1;
pointer-events: auto;
}

&__pet-select-option:hover &__pet-select-actions--deletable &__pet-select-check,
&__pet-select-option:focus-within &__pet-select-actions--deletable &__pet-select-check {
opacity: 0;
}

&__pet-select-thumb {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
overflow: visible;
flex-shrink: 0;
}

&__pet-select-panda {
transform: scale(0.62);
}

&__pet-select-text {
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}

&__pet-select-label,
&__pet-select-value {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

&__pet-select-description {
color: var(--color-text-muted);
font-size: var(--font-size-xs);
line-height: $line-height-tight;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

&__pet-preview-sprite {
width: 34px;
height: 38px;
background-image: var(--bitfun-pet-preview-src);
background-repeat: no-repeat;
background-size: 800% 900%;
background-position: 0 0;
image-rendering: pixelated;
animation: bitfun-config-pet-preview 1.2s steps(6) infinite;
}

}

@media (prefers-reduced-motion: reduce) {
.bitfun-func-agent-config {
&__pet-expand-button,
&__pet-expand-button svg,
&__pet-select-option,
&__pet-preview-sprite {
animation: none;
transition: none;
}
}
}

@keyframes bitfun-config-pet-preview {
from {
background-position-x: 0;
}

to {
background-position-x: 85.7142857%;
}
}

@container config-panel (max-width: 520px) {
.bitfun-func-agent-config {
&__row-control {
align-items: flex-start;
}

&__pet-picker {
display: block;
}

&__pet-row-heading {
flex-direction: column;
gap: $size-gap-2;
}

&__pet-actions {
justify-content: flex-start;
}

&__pet-list {
grid-template-columns: minmax(0, 1fr);
}
}
}
Loading
Loading