Skip to content

Commit 693bb9b

Browse files
style: improve analysis ui
1 parent 338b685 commit 693bb9b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/Analysis/ConfigureAnalysis.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ export const ConfigureAnalysis: React.FC<Props> = ({
3535
autoSave,
3636
}: Props) => {
3737
return (
38-
<div className="flex w-full flex-col items-start justify-start gap-2 rounded-md p-3 text-white/90">
38+
<div className="flex w-full flex-col items-start justify-start gap-1.5 rounded-md p-3 text-white/90">
3939
<div className="flex w-full flex-col gap-0.5">
4040
<p className="text-xs text-white/70">Analyze using:</p>
4141
<div className="relative inline-flex w-full items-center">
4242
<select
4343
value={currentMaiaModel}
44-
className="border-glassBorder bg-glass hover:bg-glass-hover w-full cursor-pointer appearance-none rounded-md border p-1 pr-6 text-xs text-white/90 outline-none transition duration-200"
44+
className="w-full cursor-pointer appearance-none rounded border border-glassBorder bg-glass py-[5px] pl-2.5 pr-6 text-xs text-white/90 outline-none transition duration-200 hover:bg-glass-hover"
4545
onChange={(e) => setCurrentMaiaModel(e.target.value)}
4646
>
4747
{MAIA_MODELS.map((model) => (
@@ -61,13 +61,13 @@ export const ConfigureAnalysis: React.FC<Props> = ({
6161
</div>
6262
<ContinueAgainstMaia
6363
launchContinue={launchContinue}
64-
background="!rounded-md border border-glassBorder bg-glass text-white/90 hover:bg-glass-hover !px-2 !py-1 !text-xs"
64+
background="!rounded border border-glassBorder bg-glass text-white/90 hover:bg-glass-hover !px-2.5 !py-[5px] !text-xs"
6565
/>
6666
{onAnalyzeEntireGame && (
6767
<button
6868
onClick={onAnalyzeEntireGame}
6969
disabled={isAnalysisInProgress || isLearnFromMistakesActive}
70-
className="border-glassBorder bg-glass hover:bg-glass-hover flex w-full items-center gap-1.5 rounded-md border !px-2 !py-1 !text-sm text-white/90 transition duration-200 disabled:cursor-not-allowed disabled:opacity-50"
70+
className="flex w-full items-center gap-1.5 rounded border border-glassBorder bg-glass !px-2.5 !py-[5px] !text-sm text-white/90 transition duration-200 hover:bg-glass-hover disabled:cursor-not-allowed disabled:opacity-50"
7171
>
7272
<div className="flex items-center justify-center gap-1.5">
7373
<span className="material-symbols-outlined !text-sm text-white/80">
@@ -85,7 +85,7 @@ export const ConfigureAnalysis: React.FC<Props> = ({
8585
<button
8686
onClick={onLearnFromMistakes}
8787
disabled={isAnalysisInProgress || isLearnFromMistakesActive}
88-
className="border-glassBorder bg-glass hover:bg-glass-hover flex w-full items-center gap-1.5 rounded-md border !px-2 !py-1 !text-sm text-white/90 transition duration-200 disabled:cursor-not-allowed disabled:opacity-50"
88+
className="flex w-full items-center gap-1.5 rounded border border-glassBorder bg-glass !px-2.5 !py-[5px] !text-sm text-white/90 transition duration-200 hover:bg-glass-hover disabled:cursor-not-allowed disabled:opacity-50"
8989
>
9090
<div className="flex items-center justify-center gap-1.5">
9191
<span className="material-symbols-outlined !text-sm text-white/80">

src/pages/analysis/[...id].tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ const Analysis: React.FC<Props> = ({
634634
variants={itemVariants}
635635
style={{ willChange: 'transform, opacity' }}
636636
>
637-
<div className="border-glassBorder bg-glass flex h-full w-full flex-col overflow-hidden rounded-md border backdrop-blur-md">
637+
<div className="flex h-full w-full flex-col overflow-hidden rounded-md border border-glassBorder bg-glass backdrop-blur-md">
638638
{/* Game info header */}
639639
<GameInfo
640640
title="Analysis"
@@ -667,7 +667,7 @@ const Analysis: React.FC<Props> = ({
667667
</div>
668668
{/* Moves + controller */}
669669
<div className="red-scrollbar flex h-full flex-1 flex-col overflow-y-auto">
670-
<div className="h-4" />
670+
<div className="h-4 border-b border-glassBorder" />
671671
<MovesContainer
672672
game={analyzedGame}
673673
termination={analyzedGame.termination}
@@ -1282,13 +1282,13 @@ const Analysis: React.FC<Props> = ({
12821282
/>
12831283
</Head>
12841284
{/* Radial gradient backdrop to match new design language */}
1285-
{/* <div
1285+
<div
12861286
className="pointer-events-none absolute inset-0"
12871287
style={{
12881288
background:
12891289
'radial-gradient(ellipse 75% 60% at center top, rgba(239, 68, 68, 0.08) 0%, transparent 60%)',
12901290
}}
1291-
/> */}
1291+
/>
12921292
<AnimatePresence>
12931293
{controller.maia.status === 'no-cache' ||
12941294
controller.maia.status === 'downloading' ? (

0 commit comments

Comments
 (0)