fix: recent pictures styles
This commit is contained in:
@ -6,7 +6,7 @@ export const ImageComponent: Component<{ ID: string }> = (props) => {
|
|||||||
return (
|
return (
|
||||||
<A href={`/image/${props.ID}`} class="w-full h-full">
|
<A href={`/image/${props.ID}`} class="w-full h-full">
|
||||||
<img
|
<img
|
||||||
class="w-full h-full object-contain"
|
class="w-full object-contain rounded-xl"
|
||||||
src={`${base}/image/${props.ID}`}
|
src={`${base}/image/${props.ID}`}
|
||||||
/>
|
/>
|
||||||
</A>
|
</A>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Categories } from "./gallery";
|
import { Categories } from "./gallery";
|
||||||
import { Recent } from "./Recent";
|
import { Recent } from "./recent";
|
||||||
|
|
||||||
export const FrontPage = () => {
|
export const FrontPage = () => {
|
||||||
return (
|
return (
|
||||||
|
@ -18,7 +18,7 @@ export const Recent: Component = () => {
|
|||||||
return (
|
return (
|
||||||
<div class="rounded-xl bg-white p-4 flex flex-col gap-2">
|
<div class="rounded-xl bg-white p-4 flex flex-col gap-2">
|
||||||
<h2 class="text-xl font-bold">Recent Screenshots</h2>
|
<h2 class="text-xl font-bold">Recent Screenshots</h2>
|
||||||
<div class="grid grid-cols-3 place-items-center">
|
<div class="grid grid-cols-3 gap-4 place-items-center">
|
||||||
<For each={latestImages()}>
|
<For each={latestImages()}>
|
||||||
{(image) => <ImageComponent ID={image.ImageID} />}
|
{(image) => <ImageComponent ID={image.ImageID} />}
|
||||||
</For>
|
</For>
|
Reference in New Issue
Block a user