File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
packages/gitbook/src/components Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export function Header(props: {
8888 />
8989 < HeaderLogo site = { site } space = { space } customization = { customization } />
9090 { ! hasSiteSections && isMultiVariants ? (
91- < div className = "z-20 shrink" >
91+ < div className = "z-20 shrink hidden sm:block " >
9292 < SpacesDropdown space = { space } spaces = { spaces } />
9393 </ div >
9494 ) : null }
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ function LogoFallback(props: HeaderLogoProps) {
102102 'font-semibold' ,
103103 'ms-3' ,
104104 'text-base' ,
105+ 'lg:text-lg' ,
105106 'leading-tight' ,
106107 customization . header . preset === CustomizationHeaderPreset . Default ||
107108 customization . header . preset === CustomizationHeaderPreset . None
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import { tcls } from '@/lib/tailwind';
55import { Dropdown , DropdownChevron , DropdownMenu } from './Dropdown' ;
66import { SpacesDropdownMenuItem } from './SpacesDropdownMenuItem' ;
77
8- export function SpacesDropdown ( props : { space : Space ; spaces : Space [ ] } ) {
9- const { space, spaces } = props ;
8+ export function SpacesDropdown ( props : { space : Space ; spaces : Space [ ] , className ?: string } ) {
9+ const { space, spaces, className } = props ;
1010
1111 return (
1212 < Dropdown
@@ -36,6 +36,7 @@ export function SpacesDropdown(props: { space: Space; spaces: Space[] }) {
3636 'contrast-more:dark:border-light' ,
3737 'contrast-more:dark:bg-dark' ,
3838 'contrast-more:dark:text-light' ,
39+ className
3940 ) }
4041 >
4142 < span className = { tcls ( 'line-clamp-2' ) } > { space . title } </ span >
Original file line number Diff line number Diff line change @@ -106,9 +106,7 @@ export function SpaceLayout(props: {
106106 )
107107 }
108108 innerHeader = {
109- ( sections || ! withTopHeader ) && withVariants ? (
110- < SpacesDropdown space = { space } spaces = { spaces } />
111- ) : null
109+ withVariants && < SpacesDropdown className = { ( ! sections || withTopHeader ) ? 'sm:hidden' : undefined } space = { space } spaces = { spaces } />
112110 }
113111 headerOffset = { headerOffset }
114112 />
You can’t perform that action at this time.
0 commit comments