Skip to content

Commit ff0b6ef

Browse files
committed
refactor: adjust padding and layout for ChatHistoryDrawer
1 parent fba9d1e commit ff0b6ef

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/components/ChatHistoryDrawer/ChatHistory.css

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
1717
}
1818

19+
.memori-chat-history-drawer > .memori-drawer__body {
20+
padding: 0 !important;
21+
}
22+
1923
.memori-chat-history-drawer--content {
2024
display: flex;
2125
flex-direction: column;
@@ -341,12 +345,14 @@
341345
/* Toolbar */
342346
.memori-chat-history-drawer--toolbar {
343347
display: flex;
348+
width: 90%;
349+
max-width: 90%;
344350
flex-shrink: 0;
345351
flex-wrap: wrap;
346352
align-items: center;
347-
padding: var(--memori-spacing-sm) 0;
348-
margin-left: 0;
349-
gap: var(--memori-spacing-md);
353+
padding: var(--memori-spacing-md);
354+
margin: auto;
355+
gap: var(--memori-spacing-sm);
350356
}
351357

352358
.memori-chat-history-drawer--toolbar--search {
@@ -458,8 +464,6 @@
458464
display: flex;
459465
overflow: hidden;
460466
height: 100%;
461-
min-height: 87vh;
462-
max-height: 87vh;
463467
flex-direction: column;
464468
}
465469

@@ -470,7 +474,7 @@
470474
display: flex;
471475
min-height: 56px;
472476
align-items: center;
473-
padding: var(--memori-spacing-sm);
477+
padding: var(--memori-spacing-md);
474478
border-bottom: 1px solid var(--memori-border-color, #e5e7eb);
475479
background: var(--memori-main-background);
476480
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
@@ -574,8 +578,8 @@
574578

575579
.memori-chat-history-drawer--list {
576580
display: flex;
577-
min-width: 97%;
578-
max-width: 97%;
581+
width: 90%;
582+
max-width: 90%;
579583
flex-flow: column;
580584
padding: var(--memori-spacing-sm) 0;
581585
margin: auto;

0 commit comments

Comments
 (0)