Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/gitbook/src/components/AIChat/AIChatButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import { useLanguage } from '@/intl/client';
import { t } from '@/intl/translate';
import { t, tString } from '@/intl/translate';
import type { Assistant } from '../AI';
import { useIsMobile } from '../hooks/useIsMobile';
import { Button } from '../primitives';
Expand Down Expand Up @@ -38,6 +38,7 @@ export function AIChatButton(props: {
) : null}
</div>
}
aria-label={tString(language, 'ai_chat_ask', assistant.label)}
onClick={() => assistant.open()}
>
{showLabel ? t(language, 'ask') : null}
Expand Down
2 changes: 1 addition & 1 deletion packages/gitbook/src/components/Ads/Ad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function AdSponsoredLink(props: { spaceId: string }) {
viaUrl.searchParams.set('utm_campaign', spaceId);

return (
<p className={tcls('mt-2', 'mr-2', 'text-xs', 'text-right', 'text-tint-subtle')}>
<p className={tcls('mt-2', 'mr-2', 'text-xs', 'text-right', 'text-tint')}>
<Link
target="_blank"
href={viaUrl.toString()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ function PageActionWrapper(props: {
size="xsmall"
variant="secondary"
label={label ?? shortLabel}
aria-label={shortLabel}
className="bg-tint-base"
onClick={onClick}
href={href}
Expand Down
1 change: 0 additions & 1 deletion packages/gitbook/src/components/SiteLayout/SiteLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export async function generateSiteLayoutViewport(context: GitBookSiteContext): P
: 'light dark', // 'system' → let browser decide based on OS preference
width: 'device-width',
initialScale: 1,
maximumScale: 1,
viewportFit: 'cover',
};
}
Expand Down
Loading