Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sidenav grows too large with long names #80

Merged
merged 4 commits into from
Feb 29, 2024
Merged
Changes from 1 commit
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
Next Next commit
fix:sidenav grows too large with long names
  • Loading branch information
John Donmoyer committed Feb 29, 2024
commit dba8fd552cd31c87cf447b82c6066d66e8a84fd2
10 changes: 6 additions & 4 deletions frontend/routes/package/(_components)/Docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,21 @@ export function DocsView({ docs, params, selectedVersion }: DocsProps) {
}

return (
<div class="flex flex-col lg:flex-row py-2">
<div class="lg:top-0 lg:sticky lg:flex lg:flex-col flex-shrink-0 md:pl-0 md:pr-2 lg:max-h-screen lg:py-4 lg:box-border">
<div class="grid grid-cols-1 lg:grid-cols-4 py-2">
<div class="col-span-1 top-0 sticky md:pl-0 md:pr-2 max-h-screen py-4 box-border">
<LocalSymbolSearch
scope={params.scope}
pkg={params.package}
version={selectedVersion.version}
/>
<div
class="ddoc w-full lg:flex-1 lg:min-h-0 lg:*:!h-full"
class="ddoc w-full min-h-0 *:!h-full"
dangerouslySetInnerHTML={{ __html: docs.sidepanel }}
/>
</div>
{content}
<div class="col-span-1 lg:col-span-3">
{content}
</div>
</div>
);
}