Skip to content

Commit e7cec60

Browse files
committed
Page responsiveness improvements
1 parent 06f56a4 commit e7cec60

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/components/ChatView.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@
1616
/* Header styles live in ChatHeader.css. Compose styles live in Compose.css. */
1717

1818
/* ── Messages ── */
19+
/* Horizontal padding here ensures the message-row avatar (which extends
20+
16px past the messages-container outer edge via `margin-left: -40px`)
21+
stays clear of the canvas edge as the viewport narrows or rails take
22+
space — gives a 16px buffer between avatar and canvas edge. The same
23+
padding amount is mirrored on `.chat-compose-area` (with its max-width
24+
bumped by 2× the padding) so bubble and compose stay aligned. */
1925
.chat-messages {
2026
flex: 1;
2127
overflow-y: auto;
2228
background: #FFFFFF;
2329
scrollbar-width: none;
2430
-ms-overflow-style: none;
31+
padding: 0 32px;
2532
}
2633

2734
.chat-messages::-webkit-scrollbar {
@@ -177,9 +184,10 @@
177184
bottom ~10% of the typing avatar. */
178185
.chat-compose-area {
179186
position: relative;
180-
max-width: 920px;
187+
max-width: 984px;
181188
width: 100%;
182189
margin: 0 auto;
190+
padding: 0 32px;
183191
box-sizing: border-box;
184192
}
185193

0 commit comments

Comments
 (0)