Skip to content

Commit

Permalink
fix: on demand search squishing
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercchase committed Apr 9, 2024
1 parent 7b40faf commit 2c335ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

<div [ngClass]="{
'baseline-flex': searchType === SearchTypes.BASELINE && breakpoint > breakpoints.SMALL,
'div-flex': searchType !== SearchTypes.BASELINE || breakpoint <= breakpoints.SMALL }">
'div-flex': searchType !== SearchTypes.BASELINE || breakpoint <= breakpoints.SMALL }"
class="detail-bar"
>
<div class="div-flex-column">
<div class="div-flex"
[title]="scene.metadata.fileName || scene.name"
Expand All @@ -48,7 +50,7 @@
</div>
</div>

<div class="div-flex date-time" matLine>
<div class="date-time" matLine>
<ng-container *ngIf="scene.metadata.job">
{{ scene.metadata.job.job_type }}
<br *ngIf="breakpoint === breakpoints.MOBILE && searchType === SearchTypes.CUSTOM_PRODUCTS"> -
Expand All @@ -62,13 +64,13 @@
{{ scene.metadata.opera.validityStartDate | fullDate }}
</ng-container>

<ng-container *ngIf="
<span *ngIf="
breakpoint > breakpoints.MOBILE &&
searchType !== SearchTypes.BASELINE &&
!scene.metadata?.opera?.validityStartDate"
matTooltip="{{'SCENE_START_TIME' | translate}}">
{{ scene.metadata.date | fullDate }}
</ng-container>
</span>

<ng-container *ngIf="
breakpoint === breakpoints.MOBILE ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
}
.div-flex {
line-height: initial;
}
.detail-bar {
min-width: 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@

.date-time {
font-size: 14px !important;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}

.mobile-size .mat-mdc-list-base .mat-mdc-list-item {
Expand Down

0 comments on commit 2c335ca

Please sign in to comment.