forked from abner/for-legacy-web
Fix major image bugs for chrome 93+
- fixed major bugs for chrome 93+ at the cost of minor issues that may appear (unsure, did not find any in testing) - position scaled image to the left for firefox (firefox aspect-ratio still does not scale correctly) - added `--width` and `--height` to the `Grid` for theme creators who may want to use such information easily
This commit is contained in:
@@ -41,7 +41,7 @@ export default function Attachment({ attachment, hasContent }: Props) {
|
||||
[styles.margin]: hasContent,
|
||||
spoiler,
|
||||
})}>
|
||||
<ImageFile attachment={attachment} />
|
||||
<ImageFile attachment={attachment} width={metadata.width} height={metadata.height} />
|
||||
{spoiler && <Spoiler set={setSpoiler} />}
|
||||
</SizedGrid>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user