fix: <img> is flex's immediate child therefore it stretch to its parent width (#4173)

* fix: img is flex immediate child and renders in full width

* chore: remove unnecesary use of flex
This commit is contained in:
Anwarul Islam 2024-07-17 22:04:08 +06:00 committed by GitHub
parent 1dee1e1b1a
commit 90bb470b3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
<template>
<div class="flex flex-1 flex-col">
<div>
<div
class="sticky top-lowerSecondaryStickyFold z-10 flex flex-shrink-0 items-center justify-between overflow-x-auto border-b border-dividerLight bg-primary pl-4"
>
@ -19,7 +19,7 @@
</div>
</div>
<img
class="flex max-w-full border-b border-dividerLight"
class="max-w-full"
:src="imageSource"
loading="lazy"
:alt="imageSource"