Skip to content

Commit 3d8da77

Browse files
authored
Merge pull request #162 from ModusCreateOrg/ADE-200-Adam
UI Fixes
2 parents dce45d9 + 26855fe commit 3d8da77

File tree

2 files changed

+56
-6
lines changed

2 files changed

+56
-6
lines changed

frontend/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
mavenCentral()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:8.9.2'
10+
classpath 'com.android.tools.build:gradle:8.10.0'
1111
classpath 'com.google.gms:google-services:4.4.2'
1212

1313
// NOTE: Do not place your application dependencies here; they belong

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

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
border-radius: 1rem;
44
width: 100%;
55
height: 100%;
6+
display: flex;
7+
flex-direction: column;
8+
margin-top: 0;
9+
padding-top: 0;
610
}
711

812
.ai-assistant-modal {
@@ -22,7 +26,7 @@
2226
--max-height: 85vh;
2327

2428
&::part(content) {
25-
margin: 2rem 1rem 5rem;
29+
margin: 0 1rem 5rem;
2630
}
2731
}
2832

@@ -32,15 +36,49 @@
3236
display: flex;
3337
flex-direction: column;
3438
transition: margin 0.3s ease-out;
39+
padding: 0;
3540
}
3641

3742
.ai-assistant-header {
43+
position: sticky;
44+
top: 0;
45+
z-index: 10;
46+
width: 100%;
47+
background-color: var(--ion-background-color);
48+
padding-top: 0; /* Remove any default padding */
49+
margin-top: 0; /* Remove any default margin */
50+
3851
ion-toolbar {
3952
--padding-top: 0.5rem;
4053
--padding-bottom: 0.5rem;
4154
}
4255
}
4356

57+
/* Fix for Android status bar space */
58+
&.md {
59+
.ai-assistant-header {
60+
padding-top: 0;
61+
}
62+
63+
ion-header {
64+
margin-top: 0 !important;
65+
}
66+
67+
&::part(content) {
68+
margin-top: 0;
69+
}
70+
71+
.ai-assistant-modal-body {
72+
margin-top: 0;
73+
padding-top: 0;
74+
}
75+
}
76+
77+
/* iOS specific adjustments if needed */
78+
&.ios .ai-assistant-header {
79+
padding-top: 0;
80+
}
81+
4482
.ai-assistant-toolbar {
4583
--background: transparent;
4684
--border-color: transparent;
@@ -72,18 +110,29 @@
72110
--padding: 0;
73111

74112
flex: 1;
75-
overflow: scroll;
76-
height: 80%;
113+
overflow-y: auto;
114+
height: 70%;
77115
}
78116

79117
.ai-assistant-footer {
80-
background: transparent;
81-
position: relative;
118+
position: sticky;
119+
bottom: 0;
120+
width: 100%;
121+
z-index: 10;
122+
background-color: var(--ion-background-color);
82123
display: flex;
83124
justify-content: center;
84125
align-items: center;
85126
padding: 0.5rem 0;
86127
}
128+
129+
.ai-assistant-modal-body {
130+
display: flex;
131+
flex-direction: column;
132+
height: 100%;
133+
margin-top: 0;
134+
padding-top: 0;
135+
}
87136
}
88137

89138
// Screen reader only class
@@ -106,5 +155,6 @@ ion-modal.ai-assistant-modal {
106155

107156
&::part(content) {
108157
transition: transform 0.3s cubic-bezier(0.36, 0.66, 0.04, 1);
158+
padding-top: 0;
109159
}
110160
}

0 commit comments

Comments
 (0)