fix: image sizing
This commit is contained in:
@ -4,7 +4,7 @@ import { A } from "@solidjs/router";
|
|||||||
|
|
||||||
export const ImageComponent: Component<{ ID: string }> = (props) => {
|
export const ImageComponent: Component<{ ID: string }> = (props) => {
|
||||||
return (
|
return (
|
||||||
<A href={`/image/${props.ID}`} class="w-full h-full flex justify-center">
|
<A href={`/image/${props.ID}`} class="w-full flex justify-center">
|
||||||
<img
|
<img
|
||||||
class="w-full object-contain rounded-xl max-w-[700px] max-h-[400px]"
|
class="w-full object-contain rounded-xl max-w-[700px] max-h-[400px]"
|
||||||
src={`${base}/image/${props.ID}`}
|
src={`${base}/image/${props.ID}`}
|
||||||
|
Reference in New Issue
Block a user