Skip to content

Commit fffb22b

Browse files
committed
Fix header padding and margin for AIAssistantModal on Android and iOS
1 parent b64a464 commit fffb22b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

frontend/src/common/components/AIAssistant/AIAssistantModal.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,25 @@
4242
z-index: 10;
4343
width: 100%;
4444
background-color: var(--ion-background-color);
45+
padding-top: 0; /* Remove any default padding */
46+
margin-top: 0; /* Remove any default margin */
4547

4648
ion-toolbar {
4749
--padding-top: 0.5rem;
4850
--padding-bottom: 0.5rem;
4951
}
5052
}
5153

54+
/* Fix for Android status bar space */
55+
&.md .ai-assistant-header {
56+
padding-top: 0;
57+
}
58+
59+
/* iOS specific adjustments if needed */
60+
&.ios .ai-assistant-header {
61+
padding-top: 0;
62+
}
63+
5264
.ai-assistant-toolbar {
5365
--background: transparent;
5466
--border-color: transparent;

0 commit comments

Comments
 (0)