Skip to content

Commit

Permalink
fix: modify pageWrapper margin style to keep top, bottom, left, and r…
Browse files Browse the repository at this point in the history
…ight equal
  • Loading branch information
Aaron-zon committed May 14, 2024
1 parent dd3b09b commit 45fc6e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/admin/src/component/PageWrapper/src/PageWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ withDefaults(defineProps<PageWrapperProps>(), {

<template>
<div class="page-wrapper rounded-2xl w-full h-full min-h-full">
<NScrollbar v-if="useScrollbar" content-class="scrollbar-content" class="rounded-2xl">
<NScrollbar v-if="useScrollbar" class="rounded-2xl">
<slot />
</NScrollbar>
<slot v-else />
Expand All @@ -28,7 +28,8 @@ withDefaults(defineProps<PageWrapperProps>(), {
width: calc(100% + 8px);
}
.page-wrapper :deep(.scrollbar-content) {
padding-right: 8px;
.page-wrapper :deep(.ca-scrollbar-container) {
width: calc(100% - 8px);
border-radius: 1em;
}
</style>

0 comments on commit 45fc6e0

Please sign in to comment.