Skip to content

Commit 916805c

Browse files
committed
fix: ui padding sidebar mobille
1 parent 21ec472 commit 916805c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/_layouts/tutorial.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
id="tutorial-sidebar-drawer"
1313
class="fixed top-0 left-0 h-full w-4/5 max-w-[280px] bg-white z-[80] transform -translate-x-full transition-transform
1414
duration-300 md:hidden overflow-y-auto custom-scrollbar shadow-2xl">
15-
<div class="p-6">
15+
<div class="p-4 md:p-6">
1616
<div class="flex justify-between items-center mb-6">
1717
<h2 class="text-xl font-bold text-primary-500">Materi Tutorial</h2>
1818
<button id="close-tutorial-sidebar" class="text-slate-400 hover:text-slate-600 focus:outline-none">

src/css/base.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,10 @@ video {
12151215
padding: 1.5rem;
12161216
}
12171217

1218+
.p-3 {
1219+
padding: 0.75rem;
1220+
}
1221+
12181222
.px-2 {
12191223
padding-left: 0.5rem;
12201224
padding-right: 0.5rem;
@@ -2162,6 +2166,10 @@ main code {
21622166
padding: 2rem;
21632167
}
21642168

2169+
.md\:p-6 {
2170+
padding: 1.5rem;
2171+
}
2172+
21652173
.md\:px-0 {
21662174
padding-left: 0px;
21672175
padding-right: 0px;

0 commit comments

Comments
 (0)