File tree Expand file tree Collapse file tree 2 files changed +56
-6
lines changed
src/common/components/AIAssistant Expand file tree Collapse file tree 2 files changed +56
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ buildscript {
7
7
mavenCentral()
8
8
}
9
9
dependencies {
10
- classpath ' com.android.tools.build:gradle:8.9.2 '
10
+ classpath ' com.android.tools.build:gradle:8.10.0 '
11
11
classpath ' com.google.gms:google-services:4.4.2'
12
12
13
13
// NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change 3
3
border-radius : 1rem ;
4
4
width : 100% ;
5
5
height : 100% ;
6
+ display : flex ;
7
+ flex-direction : column ;
8
+ margin-top : 0 ;
9
+ padding-top : 0 ;
6
10
}
7
11
8
12
.ai-assistant-modal {
22
26
--max-height : 85vh ;
23
27
24
28
& ::part (content ) {
25
- margin : 2 rem 1rem 5rem ;
29
+ margin : 0 1rem 5rem ;
26
30
}
27
31
}
28
32
32
36
display : flex ;
33
37
flex-direction : column ;
34
38
transition : margin 0.3s ease-out ;
39
+ padding : 0 ;
35
40
}
36
41
37
42
.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
+
38
51
ion-toolbar {
39
52
--padding-top : 0.5rem ;
40
53
--padding-bottom : 0.5rem ;
41
54
}
42
55
}
43
56
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
+
44
82
.ai-assistant-toolbar {
45
83
--background : transparent ;
46
84
--border-color : transparent ;
72
110
--padding : 0 ;
73
111
74
112
flex : 1 ;
75
- overflow : scroll ;
76
- height : 80 % ;
113
+ overflow-y : auto ;
114
+ height : 70 % ;
77
115
}
78
116
79
117
.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 );
82
123
display : flex ;
83
124
justify-content : center ;
84
125
align-items : center ;
85
126
padding : 0.5rem 0 ;
86
127
}
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
+ }
87
136
}
88
137
89
138
// Screen reader only class
@@ -106,5 +155,6 @@ ion-modal.ai-assistant-modal {
106
155
107
156
& ::part (content ) {
108
157
transition : transform 0.3s cubic-bezier (0.36 , 0.66 , 0.04 , 1 );
158
+ padding-top : 0 ;
109
159
}
110
160
}
You can’t perform that action at this time.
0 commit comments