File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 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 {
122122			"id" :          modalName (m ),
123123			"tabindex" :    "-1" ,
124124			"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 " ,
126126		},
127127		elem .Div (
128128			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] " ,
130130			},
131131			elem .Div (
132132				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 " ,
134134				},
135135				// header 
136136				elem .Div (
@@ -164,14 +164,13 @@ func modelModal(m *gallery.GalleryModel) elem.Node {
164164				// body 
165165				elem .Div (
166166					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 " ,
168168					},
169169					elem .Div (
170170						attrs.Props {
171171							"class" : "flex justify-center items-center" ,
172172						},
173173						elem .Img (attrs.Props {
174- 							//	"class": "rounded-t-lg object-fit object-center h-96", 
175174							"class" :   "lazy rounded-t-lg max-h-48 max-w-96 object-cover mt-3 entered loaded" ,
176175							"src" :     m .Icon ,
177176							"loading" : "lazy" ,
@@ -232,7 +231,6 @@ func modelModal(m *gallery.GalleryModel) elem.Node {
232231			),
233232		),
234233	)
235- 
236234}
237235
238236func  modelDescription (m  * gallery.GalleryModel ) elem.Node  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments