fix: enlarge result thumbnails
This commit is contained in:
@@ -17,9 +17,9 @@ function cssRatioToNumber(ratio: string | undefined) {
|
||||
|
||||
function thumbnailWidth(ratio: string | undefined) {
|
||||
const value = cssRatioToNumber(ratio);
|
||||
if (value > 1.35) return 'min(100%, 220px)';
|
||||
if (value < 0.8) return 'min(100%, 92px)';
|
||||
return 'min(100%, 156px)';
|
||||
if (value > 1.35) return 'min(100%, 660px)';
|
||||
if (value < 0.8) return 'min(100%, 276px)';
|
||||
return 'min(100%, 468px)';
|
||||
}
|
||||
|
||||
export default function ResultGrid({ images, onAction }: ResultGridProps) {
|
||||
|
||||
Reference in New Issue
Block a user