Skip to content

Commit 91f04cf

Browse files
committed
fix(sidebar): fix sticky position
1 parent df56f0b commit 91f04cf

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

layout/pages/home/sidebar.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
const infoFirst = theme.home.sidebar.first_item === 'info';
88
const sidebarPosition = theme.home.sidebar.position === 'right' ? 'order-last' : 'order-first';
99
%>
10-
<aside class="<%= sidebarPosition %> hidden w-60 shrink-0 md:block">
10+
<aside class="<%= sidebarPosition %> hidden w-60 shrink-0 self-stretch md:block">
1111
<div class="sticky top-[calc(var(--current-navbar-height)_+_1rem)] flex flex-col gap-6">
1212
<div data-sidebar-panel class="<%= infoFirst ? 'order-first' : 'order-last' %> rounded-2xl border border-rd-gray-alpha-400 bg-rd-background-100 p-4">
1313
<div class="flex justify-center">

tests/theme-generation.test.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ test("theme build and generation configurations", async (t) => {
6060
"--image-radius:12px",
6161
'data-home-banner="fixed"',
6262
"data-sidebar-panel",
63+
"hidden w-60 shrink-0 self-stretch md:block",
6364
'class="order-last rounded-2xl border',
6465
'aria-label="Theme Redefine" class="order-first overflow-hidden',
6566
"data-sidebar-link",

0 commit comments

Comments
 (0)