@@ -70,7 +70,7 @@ export function ChangelogHeader({
7070 </ Dialog >
7171
7272 < motion . div
73- className = "fixed top-0 w-full max-w-3xl left-0 right-0 mx-auto z-50 rounded-3xl border border-border bg-white/70 backdrop-blur-sm shadow-2xl/10"
73+ className = "fixed top-0 w-full max-w-3xl will-change-auto left-0 right-0 mx-auto z-50 rounded-3xl border border-border bg-white/70 backdrop-blur-sm shadow-2xl/10"
7474 style = { { top : fixedHeaderTop } }
7575 >
7676 < div className = "flex items-center justify-between w-full h-full px-3.5 py-2" >
@@ -117,7 +117,7 @@ export function ChangelogHeader({
117117
118118 < div className = "flex items-center gap-2" >
119119 { filters && (
120- < p className = "text-xs" >
120+ < p className = "text-xs max-sm:hidden " >
121121 { dateRange &&
122122 `${ dateRange . start . format ( "MMM D, YYYY" ) } - ${ dateRange . end . format ( "MMM D, YYYY" ) } ` }
123123 { commitRange && `${ commitRange . start } ..${ commitRange . end } ` }
@@ -171,7 +171,7 @@ export function ChangelogHeader({
171171 { showBigHeader && (
172172 < motion . header
173173 style = { { opacity : headerOpacity , scale : headerScale } }
174- className = "relative text-center flex flex-col gap-0.5 items-center justify-center min-h-64 mx-auto max-w-3xl backdrop-blur-sm border border-blue-300/30 rounded-3xl bg-background/10 p-8 py-12 mb-12 mt-12 shadow-2xl/25"
174+ className = "relative text-center flex will-change-auto flex-col gap-0.5 items-center justify-center min-h-64 mx-auto max-w-3xl backdrop-blur-sm border border-blue-300/30 rounded-3xl bg-background/10 p-8 py-12 mb-12 mt-12 max-sm:m-1 max-sm:mb -12 shadow-2xl/25"
175175 >
176176 < div className = "absolute left-4 top-4" >
177177 < Link
@@ -185,7 +185,12 @@ export function ChangelogHeader({
185185
186186 < button
187187 className = "absolute right-0 top-0 p-4"
188- onClick = { ( ) => setHelpDialogOpen ( true ) }
188+ onClick = { ( ) => {
189+ setHelpDialogOpen ( true ) ;
190+ if ( window . scrollY < 250 ) {
191+ window . scrollTo ( { top : 250 , behavior : "smooth" } ) ;
192+ }
193+ } }
189194 type = "button"
190195 >
191196 < HelpCircle className = "size-4 text-white/70 hover:text-white/50 active:text-white/50 focus:text-white/50 transition-colors duration-75" />
@@ -216,7 +221,7 @@ export function ChangelogHeader({
216221 < motion . h1
217222 layout = "position"
218223 layoutId = "changelog-header"
219- className = "text-3xl font-bold text-white text-shadow-xs"
224+ className = "text-3xl max-sm:text-2xl font-bold text-white text-shadow-xs"
220225 >
221226 < Link
222227 to = "/$owner"
@@ -234,7 +239,7 @@ export function ChangelogHeader({
234239 layoutId = { `${ repo } -header` }
235240 to = "/$owner/$repo"
236241 params = { { owner, repo } }
237- className = "text-white hover:text-white/70 active:text-white/70 focus:text-white/70 transition-colors duration-75"
242+ className = "text-white max-sm:break-all hover:text-white/70 active:text-white/70 focus:text-white/70 transition-colors duration-75"
238243 >
239244 { repo }
240245 </ MotionLink > { " " }
@@ -247,7 +252,7 @@ export function ChangelogHeader({
247252 < motion . h2
248253 layout = "position"
249254 layoutId = { `changelog-${ slug } -subheader` }
250- className = "text-lg text-white/70"
255+ className = "text-lg text-white/70 max-sm:text-base max-sm:mt-1 "
251256 >
252257 { dateRange &&
253258 `${ dateRange . start . format ( "MMM D, YYYY" ) } - ${ dateRange . end . format ( "MMM D, YYYY" ) } ` }
0 commit comments