Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #210 from teaminkling/fix-mobile-previews
Browse files Browse the repository at this point in the history
  • Loading branch information
paced authored Sep 28, 2024
2 parents c0edb05 + 85ea580 commit 7e8e5b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions components/gallery-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@ const GalleryItem = (props: ItemProps) => {
if (title) {
return (
<div className="flex-col xl:flex xl:flex-row">
<div
className="px-2 py-2 md:px-3 md:py-4 hover:opacity-95"
style={{
minWidth: 800,
minHeight: 600,
}}
>
<div className="px-2 py-2 md:px-3 md:py-4 hover:opacity-95">
<a href={`/works/${props.id}`}>
<img
src={props.retinaPreview}
Expand Down
4 changes: 2 additions & 2 deletions components/paginator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function Paginator({ worksMatchingQuery }: PaginatorProps) {
const isRandom = sort === "random" || !sort;
if (isRandom) {
return (
<div className="pb-5" style={{ maxWidth: "132px" }}>
<div className="pb-5 mx-auto md:mx-0" style={{ maxWidth: "132px" }}>
<InterfaceLink
location={`?rand=${Math.random().toString().replace(".", "")}${newParams}`}
title="Shuffle"
Expand All @@ -46,7 +46,7 @@ export default function Paginator({ worksMatchingQuery }: PaginatorProps) {
}

return (
<div className="flex pb-5">
<div className="flex pb-5 mx-auto md:mx-0">
<SquareLink
location={`?p=${previousPage}${newParams}`}
icon={<FaAngleDoubleLeft />}
Expand Down
2 changes: 1 addition & 1 deletion components/sorter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Sorter(props: SorterProps) {
const newParams = `${searchParam}${artistParam}${weekParam}`;

return (
<div className="flex flex-row py-2 items-center">
<div className="flex flex-row py-2 items-center justify-center md:justify-start">
<p className="px-2 text-center">
<b>Sort:</b>
</p>
Expand Down
2 changes: 1 addition & 1 deletion pages/works/@id/+Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function SingleWork() {

<h2 className="text-3xl pb-4">
by&nbsp;
<a href={`/artists/${artistName}`} className="underline" style={{color: "#7C7CE0"}}>
<a href={`/artists/${artistName}`} className="underline" style={{ color: "#7C7CE0" }}>
{artistName}
</a>
<p className="text-sm mt-3 text-gray-400">
Expand Down

0 comments on commit 7e8e5b5

Please sign in to comment.