char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: Chat Conversation Tabbed navigation (#27263)8144f3192

char/aliceai-t5-moe
691 B18 linesraw
1/** Sentinel tab id for the bare `#/` new-chat screen */
2export const NEW_CHAT_TAB_ID = 'new-chat';
3
4/** Label shown for the new-chat sentinel tab. */
5export const NEW_CHAT_LABEL = 'New chat';
6
7/** Fallback label for conversations without an auto-generated title. */
8export const UNNAMED_CHAT_LABEL = 'Chat';
9
10/**
11 * Tab bar max width so it stays clear of the sidebar strip. The expanded strip
12 * is `md:w-72` and the collapsed one `md:w-12`; these hold the fully tuned
13 * `max-w-[calc(100vw-?rem)]` classes so the offset has a single source.
14 */
15export const CHAT_TABS_MAX_WIDTH = {
16	COLLAPSED_SIDEBAR: 'max-w-[calc(100vw-5rem)]',
17	EXPANDED_SIDEBAR: 'max-w-[calc(100vw-20rem)]'
18} as const;