mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:29:51 +08:00
Collections vs workspaces: a workspace holds many collections, and a collection's files and reading conversations live in the workspace it was created in. The library now shows collections as folders grouped under their workspace, and creating one asks which workspace it goes into. - Folder page at /learning/reading/folders/[folderId]: breadcrumb, files, the collection's conversations, and "Start reading" that opens the whole folder in the reader. The reader's back link returns to it. - Collections carry a user-picked color (new `color` column, migrated); tones are --folder-* tokens with dark variants. - One shared "New collection" / "Edit collection" dialog with consistent type sizes. - Selection popover gains AI actions; results land as cards at the foot of the companion. Read-aloud is a single header toggle. - The three ⋯ menus (collection, document, conversation) merge into one. - Outline toggle moves to the left and starts closed; navigator has Outline / Annotations tabs. - Reading conversations live in the main sidebar (with a page-shaped idle mark) instead of a history dropdown in the companion. - Fix sidebar rows never showing a selected state (bg-[var(--background)]/60 compiled to nothing). - Composer floats over the conversation (no divider, bottom fade); the toolbar wraps by content instead of splitting under 420px.
63 lines
1.2 KiB
CSS
63 lines
1.2 KiB
CSS
.surface {
|
|
container: chat-composer / inline-size;
|
|
}
|
|
|
|
/* The actions drop below the context only when the two don't fit side by
|
|
side. A width breakpoint split them on every narrow surface — a side
|
|
panel's composer showed a mode chip on one row and a lone send button on
|
|
the next, with room for both. */
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
}
|
|
|
|
.context {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.context > * {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
min-width: 0;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Animated selector names must not displace the microphone or send button. */
|
|
.toolbar [data-toolbar-label] {
|
|
display: none;
|
|
}
|
|
|
|
@container chat-composer (min-width: 600px) {
|
|
.toolbar [data-toolbar-label] {
|
|
display: inline-flex;
|
|
max-width: 140px;
|
|
}
|
|
|
|
.toolbar [data-toolbar-label] > span {
|
|
min-width: 0;
|
|
flex-shrink: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.toolbar [data-toolbar-label] > span > span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|