Skip to content

Commit d812bbb

Browse files
jeremymanningclaude
andcommitted
Improve brain sizing constraints when info panel is toggled
- Cap toggled brain size at 90% of untoggled max (810px) - Change info-text to position:absolute to respect container max-width - Adds natural padding on wide screens via hero-container's 1200px max-width 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c1e1b32 commit d812bbb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

css/style.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,11 +1021,11 @@ body.info-transitioning .brain-image {
10211021
}
10221022

10231023
.info-text {
1024-
position: fixed;
1024+
position: absolute;
10251025
top: 50%;
1026-
right: 10%;
1026+
right: 5%;
10271027
transform: translateY(-50%);
1028-
width: 40%;
1028+
width: 45%;
10291029
max-width: 450px;
10301030
opacity: 0;
10311031
transition: opacity 0.27s ease; /* 50% faster animation */
@@ -1066,14 +1066,14 @@ body.info-transitioning .brain-image {
10661066

10671067
/* Info Panel Active State - Gallery View */
10681068
body.info-active .brain-wrapper {
1069-
left: 25%;
1069+
left: 27%;
10701070
top: 50%;
10711071
}
10721072

10731073
body.info-active .brain-image {
1074-
/* Sized to fit in the left portion (before text area), 25% larger than original */
1075-
width: 50vw;
1076-
max-width: 500px;
1074+
/* Sized to fill ~80% of left half, but never exceed 90% of untoggled size */
1075+
width: 40vw;
1076+
max-width: 810px; /* 90% of untoggled max (900px) */
10771077
max-height: 80vh;
10781078
}
10791079

0 commit comments

Comments
 (0)