Skip to content

Commit

Permalink
fix sidebar collapse state in rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
doroudi committed Dec 21, 2024
1 parent e652457 commit ea9720c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
32 changes: 6 additions & 26 deletions src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ import {
CheckmarkStarburst16Regular as BrandsIcon,
Folder32Regular as CategoryIcon,
Color24Regular as ColorsIcon,
CommentMultiple32Regular as CommentsIcon,
People28Regular as CustomersIcon,
Home32Regular as DashboardIcon,
Emoji24Regular as FeedbackIcon,
Cart24Regular as InvoicesIcon,
DocumentLink20Regular as PagesIcon,
Apps28Filled as ProductsIcon,
BoxMultiple20Regular as ProductsIcon2,
StarThreeQuarter20Filled as ReviewIcon,
Settings28Regular as SettingsIcon,
PeopleCall20Regular as SupportIcon,
ContentSettings20Regular as WebsiteSettingsIcon,
} from '@vicons/fluent'
import { RouterLink } from 'vue-router'
Expand Down Expand Up @@ -75,7 +72,11 @@ const menuOptions: MenuOption[] = [
key: 'colors',
icon: renderIcon(ColorsIcon),
},
{
label: () => renderLabel(t('menu.reviews'), '/reviews'),
key: 'reviews',
icon: renderIcon(ReviewIcon),
},
],
},
{
Expand All @@ -88,28 +89,7 @@ const menuOptions: MenuOption[] = [
key: 'customers',
icon: renderIcon(CustomersIcon),
},
{
label: () => t('menu.feedbacks'),
key: 'feedbacks',
icon: renderIcon(FeedbackIcon),
children: [
{
label: () => renderLabel(t('menu.reviews'), '/reviews'),
key: 'reviews',
icon: renderIcon(ReviewIcon),
},
{
label: () => renderLabel(t('menu.messages'), '/messages'),
key: 'messages',
icon: renderIcon(CommentsIcon),
},
{
label: () => renderLabel(t('menu.support'), '/support'),
key: 'messages',
icon: renderIcon(SupportIcon),
},
],
},
{
label: () => t('menu.pages'),
key: 'pages',
Expand Down
6 changes: 5 additions & 1 deletion src/styles/utils/_override.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
.rtl {
.n-menu-item-content__icon {
margin-left: 8px;
margin-right: auto !important;
margin-right: 5px!important;
}

.n-menu .n-submenu .n-menu-item-content {
Expand All @@ -58,4 +58,8 @@
margin-left: 8px;
margin-right:0!important;
}

.n-rate {
direction: ltr;
}
}

0 comments on commit ea9720c

Please sign in to comment.