This commit is contained in:
Mateusz Gruszczyński
2026-09-20 14:37:09 +02:00
parent e9f1dc515c
commit de3cb9f111
4 changed files with 72 additions and 85 deletions
+43 -60
View File
@@ -2854,7 +2854,6 @@ dialog::backdrop {
flex: 0 0 auto;
}
.files-head-actions .primary-button,
.files-head-actions .action-button {
width: auto;
}
@@ -2916,28 +2915,9 @@ dialog::backdrop {
}
.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;
}
@@ -2980,9 +2960,7 @@ dialog::backdrop {
}
.file-actions button,
.file-secondary-actions button {
min-height: 34px;
height: 34px;
.file-secondary-actions__buttons button {
white-space: nowrap;
}
@@ -2997,11 +2975,9 @@ dialog::backdrop {
.file-secondary-actions {
grid-column: 1 / -1;
display: flex;
flex-wrap: wrap;
gap: 7px;
align-items: center;
padding-top: 11px;
display: grid;
gap: 8px;
padding-top: 9px;
border-top: 1px solid var(--border);
}
@@ -3009,32 +2985,58 @@ dialog::backdrop {
display: none;
}
.file-secondary-actions__buttons {
display: flex;
flex-wrap: wrap;
gap: 7px;
align-items: center;
}
.file-code {
grid-column: 1 / -1;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
align-items: stretch;
padding-top: 2px;
gap: 5px;
align-items: center;
min-height: 30px;
padding: 3px 4px 3px 9px;
border: 1px solid var(--border);
border-radius: 8px;
background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}
.file-code[hidden] {
display: none;
}
.file-code textarea {
.file-code-value {
width: 100%;
min-height: 72px;
max-height: 150px;
resize: vertical;
height: 24px;
min-width: 0;
box-sizing: border-box;
border-radius: 8px;
font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
margin: 0;
padding: 0;
border: 0;
outline: 0;
background: transparent;
color: var(--text-secondary);
font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
text-overflow: ellipsis;
}
.file-code button {
align-self: stretch;
min-width: 74px;
.file-code-value:focus {
color: var(--text);
}
.file-code-copy {
min-width: 56px;
min-height: 28px;
padding: 4px 9px;
border-radius: 6px;
}
.file-secondary-actions [data-show-file-code][aria-pressed="true"] {
border-color: var(--border-strong);
background: var(--surface-2);
}
.file-delete-notice {
@@ -3105,12 +3107,6 @@ dialog::backdrop {
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;
@@ -3210,9 +3206,6 @@ dialog::backdrop {
padding-top: 10px;
}
.file-code {
grid-template-columns: 1fr;
}
}
.video-insert-dialog {
@@ -6017,16 +6010,6 @@ dialog::backdrop {
background: var(--danger-hover);
}
.action-button.compact-button {
min-height: 36px;
padding: 7px 11px;
}
.file-actions button,
.file-code button {
height: auto;
}
.footer-access {
color: var(--muted, var(--muted-fallback));
font-weight: 600;