Skip to content

Commit

Permalink
Allow moving of map with pinned file explorer #2788
Browse files Browse the repository at this point in the history
  • Loading branch information
fritschldwg committed Jan 4, 2024
1 parent 4d3b797 commit 61d9c5b
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 8 deletions.
33 changes: 27 additions & 6 deletions visualization/app/codeCharta/ui/ribbonBar/ribbonBar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,34 @@ cc-ribbon-bar {
}

cc-search-panel {
.search-panel-card.expanded {
height: 100%;
.search-panel-card {
border-left: none;
width: 100%;

&.expanded {
height: 100%;

.section-body {
min-height: ($heightExpanded - $heightCollapsed) + 5px;
max-height: 500px;
overflow-y: auto;
}
}

.section-body {
min-height: ($heightExpanded - $heightCollapsed) + 5 + px;
max-height: 500px;
overflow-y: auto;
display: flex;
flex-direction: column;
padding: 6px;
position: absolute;
top: 45px;
background: white;
border: 1px solid #b5b5b5;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);

&.hidden {
display: none;
pointer-events: none;
}
}
}
}
Expand Down Expand Up @@ -87,10 +108,10 @@ cc-ribbon-bar {
font-size: 8pt;
display: block;
width: 100%;
height: 100%;
color: gray;
text-align: center;
transition: background-color 0.4s;
padding: 1px 0 1px 0;
border-bottom: 1px solid transparent;

&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<span class="section-title" (click)="updateSearchPanelMode('treeView')">
File/Node Explorer <i class="fa fa-angle-down" title="Show folder structure"></i>
</span>
<div class="section-body">
<div class="section-body" [class.hidden]="searchPanelMode === 'minimized'">
<cc-blacklist-panel [hidden]="searchPanelMode !== 'blacklist'"></cc-blacklist-panel>
<cc-matching-files-counter [hidden]="searchPanelMode !== 'treeView'"></cc-matching-files-counter>
<cc-map-tree-view [hidden]="searchPanelMode !== 'treeView'"></cc-map-tree-view>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
cc-search-panel {
.search-panel-card {
border-left: none;
width: 100%;
}
.search-panel-card .section-body {
display: flex;
flex-direction: column;
padding: 6px;
position: absolute;
top: 45px;
background: white;
border: 1px solid #b5b5b5;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);

&.hidden {
display: none;
pointer-events: none;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<mat-select title="Sort by" [value]="selectedSortingOption$ | async" (selectionChange)="handleSelectedSortingOptionChanged($event)">
<mat-select
class="sorting-option-select"
title="Sort by"
[value]="selectedSortingOption$ | async"
(selectionChange)="handleSelectedSortingOptionChanged($event)"
>
<mat-option *ngFor="let option of sortingOptions" [value]="option">
{{ option }}
</mat-option>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.sorting-option-select {
max-width: 88px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { sortingOrderSelector } from "../../../state/store/dynamicSettings/sorti
@Component({
selector: "cc-sorting-option",
templateUrl: "./sortingOption.component.html",
styleUrls: ["./sortingOption.component.scss"],
encapsulation: ViewEncapsulation.None
})
export class SortingOptionComponent {
Expand Down

0 comments on commit 61d9c5b

Please sign in to comment.