feat(webui): add a compact composer workspace toolbar (#6256)
* feat(webui): add a compact composer workspace toolbar * refactor(webui): simplify composer workspace access control * feat(webui): add a draggable workspace access capsule * refactor(webui): simplify composer permission controls * fix(webui): align mobile workspace permissions and stabilize CI test
This commit is contained in:
1 parent
0254bf1217
commit
cf0a0276a7
34 files changed
+528
-267
No files matched your search
+28
-38
@@ -1151,10 +1151,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Composer controls adapt to their actual container, not just the viewport.
|
||||
* Narrow layouts move access and usage into a separate metadata row.
|
||||
*/
|
||||
/* Composer controls adapt to their actual container, not just the viewport. */
|
||||
.thread-composer-surface {
|
||||
container-name: thread-composer;
|
||||
container-type: inline-size;
|
||||
@@ -1296,8 +1293,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Narrow composers separate message actions from permissions and usage instead
|
||||
* of shrinking touch targets or hiding the active model and access state. */
|
||||
/* Match the directory glyph's start to the attachment glyph, not its hit area. */
|
||||
.thread-composer-meta {
|
||||
padding-inline-start: calc(var(--composer-footer-inset) + var(--composer-action-margin) + (var(--composer-action-size) - 0.875rem) / 2 - 0.5rem);
|
||||
}
|
||||
|
||||
@media (pointer: coarse) {
|
||||
.thread-composer-form { --composer-action-size: 2.75rem; }
|
||||
}
|
||||
|
||||
/* Narrow composers keep message and permission actions together, with usage below. */
|
||||
.thread-composer-form[data-compact-controls] {
|
||||
--composer-action-size: 2.25rem;
|
||||
--composer-action-margin: 0.25rem;
|
||||
--composer-footer-inset: 0.5rem;
|
||||
}
|
||||
|
||||
[data-compact-controls] .thread-composer-footer {
|
||||
column-gap: 0.25rem;
|
||||
padding: 0 0.5rem 0.5rem;
|
||||
@@ -1309,8 +1320,7 @@
|
||||
}
|
||||
|
||||
[data-compact-controls] .thread-composer-footer-actions {
|
||||
flex: none;
|
||||
max-width: none;
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
[data-compact-controls] .thread-composer-action.touch-target {
|
||||
@@ -1332,11 +1342,11 @@
|
||||
* state; margins reserve its space so adjacent controls never overlap it. */
|
||||
[data-compact-controls] .thread-composer-round-action.touch-target {
|
||||
position: relative;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
min-width: 2.25rem;
|
||||
min-height: 2.25rem;
|
||||
margin: 0.25rem;
|
||||
width: var(--composer-action-size);
|
||||
height: var(--composer-action-size);
|
||||
min-width: var(--composer-action-size);
|
||||
min-height: var(--composer-action-size);
|
||||
margin: var(--composer-action-margin);
|
||||
}
|
||||
|
||||
[data-compact-controls] .thread-composer-round-action::before {
|
||||
@@ -1350,31 +1360,11 @@
|
||||
height: 2.25rem;
|
||||
}
|
||||
|
||||
.thread-composer-meta .touch-target {
|
||||
min-height: 2.75rem;
|
||||
min-width: 2.75rem;
|
||||
}
|
||||
|
||||
.thread-composer-meta .thread-composer-access {
|
||||
max-width: 100%;
|
||||
padding-inline: 0.625rem 0.5rem;
|
||||
}
|
||||
|
||||
.thread-composer-workspace-row {
|
||||
padding-inline: 0.75rem;
|
||||
}
|
||||
|
||||
.thread-composer-workspace-row .touch-target {
|
||||
min-height: 2.75rem;
|
||||
min-width: 2.75rem;
|
||||
}
|
||||
|
||||
.thread-composer-workspace-row .thread-composer-access {
|
||||
padding-inline-end: 0;
|
||||
}
|
||||
|
||||
.thread-composer-workspace-row .thread-composer-workspace {
|
||||
padding-inline-start: 0.6875rem;
|
||||
@media (pointer: coarse) {
|
||||
.thread-composer-meta .touch-target {
|
||||
min-height: 2.75rem;
|
||||
min-width: 2.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
|
||||
Reference in new issue
Block a user