Skip to content

Commit

Permalink
fix: modify pageWrapper width
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-zon committed May 13, 2024
1 parent 179ec0b commit dd3b09b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 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" class="rounded-2xl">
<NScrollbar v-if="useScrollbar" content-class="scrollbar-content" class="rounded-2xl">
<slot />
</NScrollbar>
<slot v-else />
Expand All @@ -24,10 +24,11 @@ withDefaults(defineProps<PageWrapperProps>(), {
/*
Enhance scrollbar appearance within the pageWrapper container to maintain content visibility
*/
.page-wrapper :deep(.ca-scrollbar-container) {
padding: 0 8px;
.page-wrapper {
width: calc(100% + 8px);
}
.page-wrapper :deep(.ca-scrollbar) {
margin: 8px 0;
.page-wrapper :deep(.scrollbar-content) {
padding-right: 8px;
}
</style>

0 comments on commit dd3b09b

Please sign in to comment.