Skip to content

Commit 8a8f6df

Browse files
style: make opening page more responsive
1 parent 38ec884 commit 8a8f6df

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/Openings/OpeningBook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const OpeningBook: React.FC<Props> = ({
1919
setSelectedVariation,
2020
}: Props) => {
2121
return (
22-
<div className="flex max-h-[40vh] flex-1 flex-col gap-2 border border-white border-opacity-5 bg-background-1 py-2 md:h-[75vh] md:max-h-max md:min-w-[35vh] md:max-w-[45vh] md:rounded md:py-3">
22+
<div className="flex max-h-[40vh] flex-1 flex-col gap-2 border border-white border-opacity-5 bg-background-1 py-2 md:h-[75vh] md:max-h-max md:min-w-[40vh] md:max-w-[30%] md:rounded md:py-3">
2323
<div className="flex items-center gap-2 px-4 2xl:px-6">
2424
<i className="material-symbols-outlined text-xl md:text-3xl">
2525
menu_book

src/components/Openings/PlayOpening.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function Switcher({
217217
role="button"
218218
tabIndex={0}
219219
onClick={() => setSelected(option)}
220-
className={`flex flex-1 cursor-pointer items-center justify-center px-3 py-1.5 ${selected.id === option.id ? 'bg-human-4/60' : 'hover:bg-human-4/10'}`}
220+
className={`flex flex-1 cursor-pointer items-center justify-center px-2 py-1.5 ${selected.id === option.id ? 'bg-human-4/60' : 'hover:bg-human-4/10'}`}
221221
>
222222
<p className="select-none text-sm">{option.name}</p>
223223
</div>

src/pages/openings/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Openings: React.FC = () => {
5151
}}
5252
/>
5353
</div>
54-
<div className="flex h-[75vh] flex-1 flex-col justify-between gap-4 md:min-w-[35vh] md:max-w-[45vh]">
54+
<div className="flex min-h-[75vh] flex-1 flex-col justify-between gap-4 md:min-w-[40vh] md:max-w-[30%]">
5555
<OpeningDetails
5656
selectedOpening={selectedOpening}
5757
selectedVariation={selectedVariation}

0 commit comments

Comments
 (0)