File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -122,15 +122,15 @@ func modelModal(m *gallery.GalleryModel) elem.Node {
122
122
"id" : modalName (m ),
123
123
"tabindex" : "-1" ,
124
124
"aria-hidden" : "true" ,
125
- "class" : "hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full" ,
125
+ "class" : "hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-full max-h-full bg-gray-900/50 " ,
126
126
},
127
127
elem .Div (
128
128
attrs.Props {
129
- "class" : "relative p-4 w-full max-w-2xl max-h-full " ,
129
+ "class" : "relative p-4 w-full max-w-2xl h-[90vh] mx-auto mt-[5vh] " ,
130
130
},
131
131
elem .Div (
132
132
attrs.Props {
133
- "class" : "relative p-4 w-full max-w-2xl max-h-full bg-white rounded-lg shadow dark:bg-gray-700" ,
133
+ "class" : "relative bg-white rounded-lg shadow dark:bg-gray-700 h-full flex flex-col " ,
134
134
},
135
135
// header
136
136
elem .Div (
@@ -164,14 +164,13 @@ func modelModal(m *gallery.GalleryModel) elem.Node {
164
164
// body
165
165
elem .Div (
166
166
attrs.Props {
167
- "class" : "p-4 md:p-5 space-y-4" ,
167
+ "class" : "p-4 md:p-5 space-y-4 overflow-y-auto flex-1 min-h-0 " ,
168
168
},
169
169
elem .Div (
170
170
attrs.Props {
171
171
"class" : "flex justify-center items-center" ,
172
172
},
173
173
elem .Img (attrs.Props {
174
- // "class": "rounded-t-lg object-fit object-center h-96",
175
174
"class" : "lazy rounded-t-lg max-h-48 max-w-96 object-cover mt-3 entered loaded" ,
176
175
"src" : m .Icon ,
177
176
"loading" : "lazy" ,
@@ -232,7 +231,6 @@ func modelModal(m *gallery.GalleryModel) elem.Node {
232
231
),
233
232
),
234
233
)
235
-
236
234
}
237
235
238
236
func modelDescription (m * gallery.GalleryModel ) elem.Node {
You can’t perform that action at this time.
0 commit comments