Skip to content

Commit

Permalink
fix(workspace): CSS fix for actionbar menu (#549)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre-Etienne Lord <[email protected]>
  • Loading branch information
PhilippeLafreniere18 and pelord authored Nov 4, 2020
1 parent 2064b8f commit 8f2d41e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/pages/portal/portal.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@

<ng-container *ngIf="selectedWorkspace$ | async as workspace">
<button
class="eye-workspace"
mat-icon-button
[color]="workspace.layer.visible ? 'primary' : 'default'"
collapsibleButton
Expand All @@ -129,15 +130,17 @@
</mat-icon>
</button>
<igo-actionbar
class="actionbar-workspace"
*ngIf="workspace.actionStore"
[store]="workspace.actionStore"
[withIcon]="true"
[withTitle]="actionbarWithTitle"
[horizontal]="true"
[withToggleButton]="actionbarMode === 'overlay'"
[iconColor]="'primary'"
[color]="'primary'"
[mode]="actionbarMode">
[color]="'primary'"
[mode]="actionbarMode"
[overlayClass]="workspaceMenuClass">
</igo-actionbar>
<div class="spacer"></div>
<igo-entity-table-paginator
Expand Down
17 changes: 17 additions & 0 deletions src/app/pages/portal/portal.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,20 @@ app-toast-panel-for-expansion .toast-panel-for-expansion-close-button-container
line-height: 24px;
}
}

.eye-workspace {
margin-left: 7px;
margin-top: 5px;
}

.actionbar-workspace {
padding-left: 0px;
}

::ng-deep div.workspace-menu {
max-width: fit-content !important;

div.mat-menu-content ::ng-deep span.mat-checkbox-label, div.mat-menu-content ::ng-deep div.mat-list-text {
font-size: 12px;
}
}
1 change: 1 addition & 0 deletions src/app/pages/portal/portal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class PortalComponent implements OnInit, OnDestroy {
pageSize: 50, // Number of items to display on a page.
pageSizeOptions: [1, 5, 10, 20, 50, 100, 500] // The set of provided page size options to display to the user.
};
public workspaceMenuClass = 'workspace-menu';

public fullExtent = this.storageService.get('fullExtent') as boolean;
public sidenavOpened = false;
Expand Down

0 comments on commit 8f2d41e

Please sign in to comment.