Skip to content

Commit 53dbba6

Browse files
committed
fix(panel): adjust responsive padding
1 parent 3f4301f commit 53dbba6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/common/panel/PanelContent.vue

+7-2
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,15 @@ const onTouchEnd = (e: TouchEvent) => {
7171
position: sticky;
7272
top: 1rem;
7373
74-
@media (width < 725px) {
74+
@media (width < 550px) {
7575
position: inherit;
7676
}
7777
}
7878
7979
&-content {
8080
margin-top: -1.125rem;
8181
padding: 0 3rem 1.25rem;
82+
transition: padding 0.5s var(--n-bezier);
8283
8384
:deep(.n-skeleton) {
8485
opacity: 1;
@@ -91,7 +92,11 @@ const onTouchEnd = (e: TouchEvent) => {
9192
}
9293
9394
@media (width < 725px) {
94-
padding: 0 0.75rem 1rem;
95+
padding: 0 0.75rem 0.5rem;
96+
}
97+
98+
@media (width < 550px) {
99+
padding: 0 0.25rem;
95100
}
96101
}
97102
}

src/components/common/panel/PanelHeader.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const { title, url, label } = defineProps({
3636
.panel-title-skeleton {
3737
text-align: center;
3838
39-
@media (width < 725px) {
39+
@media (width < 550px) {
4040
padding: 0 1.5rem;
4141
}
4242
}

0 commit comments

Comments
 (0)