File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed
packages/gitbook/src/components Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " gitbook " : patch
3+ ---
4+
5+ Language selector edge cases
Original file line number Diff line number Diff line change @@ -80,13 +80,14 @@ export function Header(props: {
8080 >
8181 < HeaderMobileMenu
8282 className = { tcls (
83- 'lg:hidden' ,
8483 '-ml-2' ,
8584 'text-tint-strong' ,
8685 'theme-bold:text-header-link' ,
8786 'hover:bg-tint-hover' ,
8887 'hover:theme-bold:bg-header-link/3' ,
89- withVariants === 'generic' ? '' : 'page-no-toc:hidden'
88+ withVariants === 'generic'
89+ ? 'xl:hidden'
90+ : 'page-no-toc:hidden lg:hidden'
9091 ) }
9192 />
9293 < HeaderLogo context = { context } />
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import type { RenderAIMessageOptions } from '../AI';
2020import { AIChat } from '../AIChat' ;
2121import { AdaptiveVisitorContextProvider } from '../Adaptive' ;
2222import { Announcement } from '../Announcement' ;
23- import { SpacesDropdown } from '../Header/SpacesDropdown' ;
23+ import { SpacesDropdown , TranslationsDropdown } from '../Header/SpacesDropdown' ;
2424import { InsightsProvider } from '../Insights' ;
2525import { SearchContainer } from '../Search' ;
2626import { SiteSectionList , encodeClientSiteSections } from '../SiteSections' ;
@@ -156,12 +156,20 @@ export function SpaceLayout(props: SpaceLayoutProps) {
156156 'pr-4' ,
157157 'lg:flex' ,
158158 'grow-0' ,
159- 'flex-wrap' ,
160159 'dark:shadow-light/1' ,
161- 'text-base/tight'
160+ 'text-base/tight' ,
161+ 'items-center'
162162 ) }
163163 >
164164 < HeaderLogo context = { context } />
165+ { withVariants === 'translations' ? (
166+ < TranslationsDropdown
167+ context = { context }
168+ siteSpace = { siteSpace }
169+ siteSpaces = { siteSpaces }
170+ className = "[&_.button-leading-icon]:block! ml-auto py-2 [&_.button-content]:hidden"
171+ />
172+ ) : null }
165173 </ div >
166174 )
167175 }
You can’t perform that action at this time.
0 commit comments