Skip to content

Commit

Permalink
chore: fix menu and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
belsman committed Sep 17, 2024
1 parent d7fc509 commit 4076835
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 116 deletions.
57 changes: 30 additions & 27 deletions apps/restorecommerce/src/assets/images/restore_commerce_logo_square.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/core/config/src/lib/constants/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const supported: ILanguage[] = [

export const APP: Readonly<IAppConstant> = {
name,
logoUrl: '/assets/images/restore_commerce_logo_full.png',
logoUrl: '/assets/images/restore_commerce_logo_square.svg',
languages: {
default: {
...supported[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
role="menuitem"
>
<div class="w-100p h-100p row">
<div class="offset-2 flex row justify-content-center align-items-center">
<div class="flex row align-items-center">
<vcl-icon
vclPrepend
[icon]="icon"
/>
></vcl-icon>
<div class="pl-2"><ng-content></ng-content></div>
</div>

<div class="flex-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { RcDrawerNavigationComponent } from './drawer-navigation.component';
styles: [
`
.navigation-item-label > div.row {
font-size: 2.5rem;
font-size: 1rem;
}
`,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
[ngSrc]="logoUrl"
class="responsive-image logo"
role="presentation"
width="91"
height="30"
width="32"
height="32"
/>
</a>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class JSONEditorComponent implements AfterViewInit, OnDestroy {
@HostBinding('class') classNames = 'col w-100p';

editor!: ace.Ace.Editor;
// TODO Make this private and provide an external data accessor value

@Input() value = '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,26 @@
icon="mdi:receipt-outline"
[routerLink]="ROUTER.pages.main.children.orders.link"
[routerLinkActive]="['selected']"
/>
>Orders</rc-drawer-navigation-item
>
<rc-drawer-navigation-item
icon="mdi:tag-outline"
[routerLink]="ROUTER.pages.main.children.products.link"
[routerLinkActive]="['selected']"
/>

>Products</rc-drawer-navigation-item
>
<rc-drawer-navigation-item
icon="mdi:invoice-outline"
[routerLink]="ROUTER.pages.main.children.invoices.link"
[routerLinkActive]="['selected']"
/>

>Invoices</rc-drawer-navigation-item
>
<rc-drawer-navigation-item
icon="mdi:truck-outline"
[routerLink]="ROUTER.pages.main.children.fulfillments.link"
[routerLinkActive]="['selected']"
/>
>Fulfillments</rc-drawer-navigation-item
>
</ng-container>
<!-- /Home -->

Expand Down
80 changes: 3 additions & 77 deletions packages/modules/ui/src/lib/styles/drawer.scss
Original file line number Diff line number Diff line change
@@ -1,77 +1,3 @@
// // Sidebar stuff
// .drawer-content {
// $color-alpha: 0.4;

// // Workaround to support drawer content margin left
// // margin-left: 0 !important;

// .drawer-open + main.rc-main {
// margin-left: 147px !important;
// transition: 0.3s;
// }

// .rc-drawer-navigation {
// height: 100%;

// & .navigation {
// /* height: 100% */
// overflow: hidden;

// &:hover {
// overflow-y: auto;
// overflow-y: overlay;
// -ms-overflow-style: -ms-autohiding-scrollbar;
// }

// margin-bottom: 0;

// & .navigation-item {
// text-align: center;

// & vcl-icogram,
// & vcl-icon,
// & .icogram,
// & .icon {
// display: block;

// .icon {
// font-size: 2.3em;
// margin: 0;
// display: block;
// }

// .text {
// font-size: 0.85em;
// width: 9em;
// display: inline-block;
// overflow: hidden;
// white-space: normal;
// margin-top: 0.6em;
// }
// }
// }

// // Workaround to support programmatic hovering
// // Removes the :hover effect of a nav label if the .hovered class is not present
// & .navigation-item:not(.selected) {
// & .navigation-item-label:hover:not(.hovered) {
// color: inherit;
// background-color: transparent;
// }
// }
// }

// & .level2 {
// background-color: rgba(250, 250, 250, $color-alpha);
// z-index: 1;
// box-shadow: 3px 0 3px 0 rgba(0, 0, 0, $color-alpha);
// }

// & .rc-drawer-navigation-submenu-arrow {
// text-align: right;
// position: absolute;
// top: 0;
// right: 0;
// }
// }
// }
.drawer.drawer-open {
width: 15rem;
}
1 change: 1 addition & 0 deletions packages/modules/ui/src/lib/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@use './console.scss';
@use './app.scss';
@use './badge.scss';
@use './drawer.scss';
@use './forms.scss';
@use './orders.scss';
@use './page.scss';
Expand Down
2 changes: 2 additions & 0 deletions packages/modules/ui/src/lib/styles/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@ rc-header.application-header .logo {
.cdk-overlay-pane {
& > .rc-drawer-navigation {
background-color: transparent;
width: 15em;
font-size: 1rem;
}
}

0 comments on commit 4076835

Please sign in to comment.