fix: using image component on image page

This commit is contained in:
2025-07-21 14:04:22 +01:00
parent eb0914c9ca
commit ad4967a97d
2 changed files with 4 additions and 3 deletions

View File

@@ -4,9 +4,9 @@ import { A } from "@solidjs/router";
export const ImageComponent: Component<{ ID: string }> = (props) => {
return (
<A href={`/image/${props.ID}`} class="w-full h-full max-h-[400px]">
<A href={`/image/${props.ID}`} class="w-full h-full">
<img
class="w-full object-contain rounded-xl max-h-full"
class="w-full object-contain rounded-xl max-h-[400px]"
src={`${base}/image/${props.ID}`}
/>
</A>