File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/app/(frontend)/[locale]/projects/[id] Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,8 @@ const Page = async ({ params }: Props) => {
169169
170170 if ( ! imageFile ) return 'Imagen no seleccionada.'
171171
172+ const imageOverflow = image . phoneConf . imgAlign === 'overflow'
173+
172174 return (
173175 < div key = { img . id } >
174176 < figure
@@ -205,7 +207,7 @@ const Page = async ({ params }: Props) => {
205207 </ figcaption >
206208 </ figure >
207209 < div
208- className = { `${ image . phoneConf . imgAlign === 'overflow' ? '' : 'px-8' } flex flex-col justify-evenly gap-y-20 py-20 lg:hidden` }
210+ className = { `${ imageOverflow ? '' : 'px-8' } flex flex-col justify-evenly gap-y-20 py-20 lg:hidden` }
209211 style = { { backgroundColor : image . bgColor } }
210212 key = { `${ img . id } -mobile` }
211213 >
@@ -214,8 +216,8 @@ const Page = async ({ params }: Props) => {
214216 alt = { imageFile . alt }
215217 width = { imageFile . width ! }
216218 height = { imageFile . height ! }
217- className = "mx-auto xl:max- w-full h-auto object-contain"
218- sizes = "(min-width: 1280px) 60vw, 75vw"
219+ className = "mx-auto w-full h-auto object-contain max-h-150 "
220+ sizes = { imageOverflow ? '100vw' : '95vw' }
219221 />
220222
221223 < div className = "px-8" >
You can’t perform that action at this time.
0 commit comments