feat: improve

This commit is contained in:
2024-03-02 15:21:28 +07:00
parent cfcb9bc6ed
commit ca0e041731
62 changed files with 1353 additions and 1631 deletions

View File

@@ -35,7 +35,10 @@ export function ImagePreview({ url }: { url: string }) {
return (
// biome-ignore lint/a11y/useKeyWithClickEvents: <explanation>
<div onClick={open} className="group relative my-1 rounded-2xl">
<div
onClick={open}
className="group relative my-1 overflow-hidden rounded-xl"
>
<img
src={url}
alt={url}
@@ -43,7 +46,7 @@ export function ImagePreview({ url }: { url: string }) {
decoding="async"
style={{ contentVisibility: "auto" }}
onError={fallback}
className="h-auto w-full rounded-2xl object-cover"
className="h-auto w-full object-cover"
/>
<button
type="button"