Skip to content

Commit 533ccac

Browse files
committed
fix(ui): base timeline width on center pane
Move the compact timeline width rule from viewport media queries to the session-center narrow width step. This keeps the timeline compact when the chat pane is narrow due to side panels, even on wide desktop viewports. Validation: npm run typecheck --workspace @codenomad/ui
1 parent d9af413 commit 533ccac

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

packages/ui/src/styles/messaging/message-timeline.css

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@
2626
pointer-events: none;
2727
}
2828

29-
@media (max-width: 720px) {
30-
.message-layout--with-timeline {
31-
grid-template-columns: minmax(0, 1fr) 40px;
32-
}
29+
.session-center-column[data-session-center-width="narrow"] .message-layout--with-timeline {
30+
grid-template-columns: minmax(0, 1fr) 40px;
31+
}
3332

34-
.message-layout--with-timeline::after {
35-
inset-inline-end: 40px;
36-
}
33+
.session-center-column[data-session-center-width="narrow"] .message-layout--with-timeline::after {
34+
inset-inline-end: 40px;
3735
}
3836

3937
.message-stream-shell {
@@ -59,10 +57,8 @@
5957
}
6058

6159

62-
@media (max-width: 720px) {
63-
.message-timeline-sidebar {
64-
width: 40px;
65-
}
60+
.session-center-column[data-session-center-width="narrow"] .message-timeline-sidebar {
61+
width: 40px;
6662
}
6763

6864
.message-timeline {

0 commit comments

Comments
 (0)