v0.2.79
This commit is contained in:
+320
-82
@@ -2810,20 +2810,16 @@ dialog::backdrop {
|
||||
}
|
||||
|
||||
.files-dialog {
|
||||
width: min(940px, calc(100% - 28px));
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.files-panel {
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
|
||||
max-height: calc(100vh - 28px);
|
||||
}
|
||||
|
||||
.files-list {
|
||||
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-gutter: stable;
|
||||
grid-template-rows: auto auto minmax(0, 1fr);
|
||||
min-height: 0;
|
||||
height: min(650px, calc(100dvh - 28px));
|
||||
max-height: calc(100dvh - 28px);
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.files-head {
|
||||
@@ -2838,10 +2834,17 @@ dialog::backdrop {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.files-head h2 {
|
||||
font-size: 1.08rem;
|
||||
letter-spacing: -.01em;
|
||||
}
|
||||
|
||||
.files-head p {
|
||||
max-width: 620px;
|
||||
margin-top: 5px;
|
||||
color: var(--muted);
|
||||
font-size: .8rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.files-head-actions {
|
||||
@@ -2856,110 +2859,163 @@ dialog::backdrop {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.files-toolbar {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 11px;
|
||||
background: color-mix(in srgb, var(--surface-2) 72%, transparent);
|
||||
}
|
||||
|
||||
.files-dialog-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
gap: 8px;
|
||||
color: var(--text-secondary);
|
||||
font-size: .78rem;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.files-search {
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
margin: 0;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.files-list {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
overflow: auto;
|
||||
min-height: 80px;
|
||||
align-content: start;
|
||||
gap: 10px;
|
||||
min-height: 100px;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
padding: 1px 3px 2px 1px;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
.file-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
gap: 12px 16px;
|
||||
align-items: center;
|
||||
padding: 13px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 9px;
|
||||
border-radius: 12px;
|
||||
background: var(--control-bg);
|
||||
transition: border-color .14s ease, background .14s ease, transform .14s ease;
|
||||
}
|
||||
|
||||
.file-row:not(.file-row--skeleton):hover {
|
||||
border-color: var(--border-strong);
|
||||
background: color-mix(in srgb, var(--surface-2) 78%, var(--control-bg));
|
||||
}
|
||||
|
||||
.file-row-main {
|
||||
display: grid;
|
||||
grid-template-columns: 44px minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.file-type-badge {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 10px;
|
||||
background: var(--surface-2);
|
||||
color: var(--accent-text-strong);
|
||||
font-size: .64rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .045em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.file-copy {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.file-name {
|
||||
overflow: hidden;
|
||||
color: var(--text);
|
||||
font-size: .86rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.file-meta {
|
||||
margin-top: 4px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 5px 8px;
|
||||
margin-top: 5px;
|
||||
color: var(--muted-2);
|
||||
font-size: .72rem;
|
||||
font-size: .7rem;
|
||||
}
|
||||
|
||||
.file-meta > span:not(.file-flag) + span:not(.file-flag)::before {
|
||||
content: "·";
|
||||
margin-right: 8px;
|
||||
color: var(--border-strong);
|
||||
}
|
||||
|
||||
.file-flag {
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
.file-actions {
|
||||
display: flex;
|
||||
|
||||
justify-content: flex-end;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.file-actions button {
|
||||
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
padding: 0 8px;
|
||||
font-size: .72rem;
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.files-head {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.files-head-actions {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.files-head-actions .action-button {
|
||||
padding-inline: 9px;
|
||||
}
|
||||
|
||||
.file-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.file-actions {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.files-panel {
|
||||
min-height: 0;
|
||||
height: min(590px, calc(100vh - 28px));
|
||||
}
|
||||
|
||||
.files-list {
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.file-row {
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.file-row-main {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.file-actions {
|
||||
align-items: center;
|
||||
align-self: start;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-end;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.file-actions button {
|
||||
.file-actions button,
|
||||
.file-secondary-actions button {
|
||||
min-height: 34px;
|
||||
height: 34px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.file-primary-action {
|
||||
min-width: 102px;
|
||||
}
|
||||
|
||||
.file-more-button[aria-expanded="true"] {
|
||||
border-color: var(--border-strong);
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.file-secondary-actions {
|
||||
grid-column: 1 / -1;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
align-items: center;
|
||||
padding-top: 11px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.file-secondary-actions[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.file-code {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
align-items: stretch;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
.file-code[hidden] {
|
||||
@@ -2968,10 +3024,11 @@ dialog::backdrop {
|
||||
|
||||
.file-code textarea {
|
||||
width: 100%;
|
||||
min-height: 76px;
|
||||
min-height: 72px;
|
||||
max-height: 150px;
|
||||
resize: vertical;
|
||||
box-sizing: border-box;
|
||||
border-radius: 8px;
|
||||
font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
@@ -2984,19 +3041,175 @@ dialog::backdrop {
|
||||
margin: 0;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 9px;
|
||||
border-radius: 10px;
|
||||
background: var(--surface-2);
|
||||
color: var(--text-secondary);
|
||||
font-size: .8rem;
|
||||
font-size: .78rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.files-state {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
min-height: 250px;
|
||||
padding: 28px;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.files-state strong {
|
||||
margin-top: 10px;
|
||||
color: var(--text);
|
||||
font-size: .88rem;
|
||||
}
|
||||
|
||||
.files-state span {
|
||||
max-width: 420px;
|
||||
margin-top: 5px;
|
||||
font-size: .76rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.files-state .action-button {
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.files-state-mark {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 13px;
|
||||
background: var(--surface-2);
|
||||
color: var(--accent-text-strong);
|
||||
font-size: 1.25rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.files-state--error .files-state-mark {
|
||||
border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.file-row--skeleton {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.file-skeleton {
|
||||
display: block;
|
||||
border-radius: 7px;
|
||||
background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
|
||||
background-size: 220% 100%;
|
||||
animation: file-skeleton-pulse 1.25s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.file-skeleton--badge {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.file-skeleton--name {
|
||||
width: min(260px, 80%);
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.file-skeleton--meta {
|
||||
width: min(360px, 95%);
|
||||
height: 9px;
|
||||
margin-top: 9px;
|
||||
}
|
||||
|
||||
.file-skeleton--action {
|
||||
width: 132px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
@keyframes file-skeleton-pulse {
|
||||
from { background-position: 100% 0; }
|
||||
to { background-position: -100% 0; }
|
||||
}
|
||||
|
||||
.ui-spinner {
|
||||
display: inline-block;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
box-sizing: border-box;
|
||||
border: 2px solid var(--border-strong);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: ui-spinner-rotate .7s linear infinite;
|
||||
}
|
||||
|
||||
.ui-spinner--small {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
@keyframes ui-spinner-rotate {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.file-row,
|
||||
.file-skeleton,
|
||||
.ui-spinner {
|
||||
transition: none;
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.files-panel {
|
||||
height: min(720px, calc(100dvh - 18px));
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.files-head {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.files-head p {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.files-head-actions {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.files-head-actions .action-button {
|
||||
padding-inline: 9px;
|
||||
}
|
||||
|
||||
.files-toolbar {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.files-search {
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.file-row {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 11px;
|
||||
}
|
||||
|
||||
.file-actions {
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.file-primary-action {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.file-secondary-actions {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.file-code {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@@ -5532,6 +5745,31 @@ dialog::backdrop {
|
||||
box-shadow: 0 14px 40px var(--shadow-45);
|
||||
}
|
||||
|
||||
.emoji-loading {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
gap: 10px;
|
||||
min-height: 210px;
|
||||
padding: 22px;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
font-size: .78rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.emoji-loading[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.emoji-loading.is-error {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.emoji-picker-content[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.emoji-search {
|
||||
width: 100%;
|
||||
min-height: 36px;
|
||||
|
||||
Reference in New Issue
Block a user