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(layout): v2 퀵가이드에서 사이즈가 줄어들경우 래이아웃이 찌그러지는 버그 수정 #714

Merged
merged 6 commits into from
Dec 26, 2024
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 src/components/interactive-docs/CodePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function CodePanel() {
return (
<nav
ref={ref!}
class="sticky top-40 grid grid-rows-[auto_1fr] h-[calc(100dvh-160px-8px)] gap-y-2 overflow-hidden rounded-xl bg-slate-8 px-2"
class="sticky top-42 grid grid-rows-[auto_1fr] h-[calc(100dvh-160px-8px)] gap-y-2 overflow-hidden rounded-xl bg-slate-8 px-2 md:top-40"
>
<CodePreview />
<CodeRenderer />
Expand Down
20 changes: 13 additions & 7 deletions src/layouts/docs/InteractiveDocs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@ export function InteractiveDocs(
const isHybridSelected = createMemo(() => !Array.isArray(selectedLanguage()));
return (
<div class="grid grid-cols-[1fr_1.2fr] grid-rows-[auto_1fr] flex-1 gap-y-2">
<div class="sticky top-26 col-span-2 min-h-12 flex items-center gap-3 from-white bg-gradient-to-r px-6">
<div class="rounded-md text-xs text-slate-5 font-medium">
결제대행사
</div>
<PgSelect />
<div class="rounded-md text-xs text-slate-5 font-medium">결제수단</div>
<PayMethodSelect />
<div class="sticky top-55px col-span-2 min-h-12 flex flex-wrap items-center gap-3 from-white bg-gradient-to-r px-6 z-sticky-layout md:top-26">
<section class="flex flex-row items-center">
<div class="rounded-md text-xs text-slate-5 font-medium">
결제대행사
</div>
<PgSelect />
</section>
<section class="flex flex-row items-center">
<div class="rounded-md text-xs text-slate-5 font-medium">
결제수단
</div>
<PayMethodSelect />
</section>
<LanguageSelect languages={["frontend", "hybrid"]} title="Frontend" />
<Show when={isHybridSelected() === false}>
<LanguageSelect languages={"backend"} title="Backend" />
Expand Down
1 change: 1 addition & 0 deletions uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const zIndex = {
"left-sidebar": 8,
"overlay-dim": 2,
"selected-tab": 1,
"sticky-layout": 3,
};

export default defineConfig({
Expand Down
Loading