File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -221,8 +221,8 @@ const service: LocalImageService = {
221221 }
222222 ) : Promise < { data : Uint8Array ; format : ImageOutputFormat } > {
223223 const sharp = ( await import ( "sharp" ) ) . default ;
224- const MAX_WIDTH = 1280 ;
225- const MAX_HEIGHT = 1280 ;
224+ const MAX_WIDTH = 720 ;
225+ const MAX_HEIGHT = 720 ;
226226 let buffer = inputBuffer ;
227227
228228 if ( / ^ h t t p s ? : \/ \/ / . test ( transform . src ) ) {
@@ -258,7 +258,8 @@ const service: LocalImageService = {
258258 height = MAX_HEIGHT ;
259259 width = Math . round ( height * aspectRatio ) ;
260260 }
261- } else if ( height ) {
261+ }
262+ if ( height ) {
262263 // If only height is defined, calculate the width to maintain the aspect ratio
263264 width = Math . round ( height * aspectRatio ) ;
264265 if ( width > MAX_WIDTH ) {
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ const nextSessionsOrdered = sameRoomNextSession
156156 src = { speaker .data .avatar }
157157 alt = { speaker .data .name }
158158 inferSize = { true }
159- class = " max-w-[240px] sm:max-w-[540px] xl:max-w-[720px] max-h-[240px] sm:max-h-[540px] xl:max-h-[720px] object-scale-down"
159+ class = " w-full max-w-[240px] sm:max-w-[540px] xl:max-w-[720px] max-h-[240px] sm:max-h-[540px] xl:max-h-[720px] object-scale-down"
160160 />
161161 </div >
162162 </div >
You can’t perform that action at this time.
0 commit comments