Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
artisticlight committed Dec 4, 2024
1 parent 5c8dd64 commit 3103880
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/app/components/results-menu/results-menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class="w100"

[ngClass]="{'mobile-size': breakpoint === breakpoints.MOBILE}"
[ngClass]="{'displacement-results': searchType === SearchTypes.DISPLACEMENT}"
[style.height.px]="menuHeightPx"
mwlResizable
[validateResize]="validate"
Expand Down Expand Up @@ -45,8 +46,9 @@
[resize$]="resize$">
</app-desktop-results-menu>

<app-timeseries-results-menu class="w100 h100 results-menu--layout" [resize$]="resize$" *ngIf="searchType === SearchTypes.DISPLACEMENT">

<app-timeseries-results-menu class="w100 h100 results-menu--layout"
[resize$]="resize$"
*ngIf="searchType === SearchTypes.DISPLACEMENT">
</app-timeseries-results-menu>
<app-sarviews-results-menu class="w100 h100 results-menu--layout"
*ngIf="searchType === SearchTypes.SARVIEWS_EVENTS"
Expand Down
3 changes: 3 additions & 0 deletions src/app/components/results-menu/results-menu.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
.mobile-menu-offset {
bottom: 117px;
z-index: 2000;
}

.displacement-results {
min-height: 400px;
}

.desktop-menu-offset {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
maxBufferPx="400"
class="ts-best-fit-viewport">
<div *cdkVirtualFor="let item of bestFitItems" class="ts-best-fit-item">
<div [style.background-color]="item.color" class="ts-color-swatch"></div>
<div [style.background-color]="item.color" class="ts-color-swatch">{{item.seriesNumber}}</div>
<div style="display: flex; flex-direction: column;">
<div>Series {{item.seriesNumber}}</div>
<div>{{item.formula}}</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@
margin-left: 10px;
margin-right: 10px;
}

.ts-color-swatch {
width: 15px;
height: 15px;
margin-right: 5px;
text-align: center;
color: black;
font-weight: bolder;
}

::ng-deep .cdk-virtual-scrollable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ export class TimeseriesChartComponent implements OnInit, OnDestroy {
}

public isOverflowing(): boolean {
return this.virtualScroll.measureRenderedContentSize() > this.virtualScroll.getViewportSize();
console.log('content/viewport size:', this.virtualScroll.measureRenderedContentSize(), this.virtualScroll.getViewportSize())
return this.virtualScroll.measureRenderedContentSize() > this.virtualScroll.getViewportSize()-270;
}

public translateChartText() {
Expand Down

0 comments on commit 3103880

Please sign in to comment.