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 docs/app/components/ui/site-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function SdkSelect() {
onClick={() => setOpen((o) => !o)}
>
<span className="sdk-dd-icon">{SDK_ICONS[active.id]}</span>
<span>{active.label}</span>
<span className="sdk-dd-name">{active.label}</span>
<ChevronDown className="sdk-caret" size={13} aria-hidden="true" />
</button>
{open ? (
Expand Down
10 changes: 10 additions & 0 deletions docs/app/styles/atoms.css
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,16 @@
.kbar {
display: none;
}
/* Tighten the bar so its min-content width fits small phones (375px) —
otherwise the whole page gains a horizontal scroll and the right-side
icons land off-screen. */
.nav {
gap: 12px;
padding: 14px 16px;
}
.navright {
gap: 8px;
}
.foot-grid {
grid-template-columns: 1fr 1fr;
}
Expand Down
3 changes: 3 additions & 0 deletions docs/app/styles/changelog.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
padding: 1px 5px;
border-radius: 5px;
color: var(--txt);
/* Long identifiers (env vars, dotted paths) must break rather than widen
the page into a horizontal scroll on phones. */
overflow-wrap: anywhere;
}
.rel-earlier {
margin-top: 6px;
Expand Down
17 changes: 17 additions & 0 deletions docs/app/styles/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ body {
.side-search {
display: flex;
}
/* The dropdown button already names the SDK; the label is dead weight at
phone widths where the topbar is fighting for room. */
.sdk-dd-label {
display: none;
}
}
@media (max-width: 480px) {
/* Collapse the SDK picker to its language icon + caret so the topbar's
min-content width fits small phones (down to 320px) without pushing the
theme/GitHub buttons off-screen. The icon still identifies the SDK and
the accessible name is unchanged. */
.sdk-dd-name {
display: none;
}
}
.side-search:hover {
border-color: var(--line3);
Expand Down Expand Up @@ -384,6 +398,9 @@ body {
padding: 1.5px 6px;
border-radius: 5px;
color: var(--txt);
/* Long identifiers (env vars, dotted paths) must break rather than widen
the page into a horizontal scroll on phones. */
overflow-wrap: anywhere;
}
.article a {
color: var(--indigo-br);
Expand Down