Skip to content

Commit

Permalink
fix elipsified text in operator dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed May 1, 2024
1 parent ec36c8f commit 7c9a4c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 44 deletions.
3 changes: 2 additions & 1 deletion src/app/advanced/advanced.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
<ion-col class="search" [sizeXs]="12" [sizeMd]="6">
<ion-row>
<ion-col size="6">
<ion-select interface="popover" [(ngModel)]="searchQuery.meta[filter.prop].operator" (ionChange)="saveQuery()">
<ion-select interface="popover" [(ngModel)]="searchQuery.meta[filter.prop].operator" (ionChange)="saveQuery()"
[interfaceOptions]="{ cssClass: 'operator-select' }">
<ion-select-option *ngFor="let operator of allOperators" [value]="operator.value">
{{ operator.label }}
</ion-select-option>
Expand Down
51 changes: 8 additions & 43 deletions src/app/advanced/advanced.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,55 +50,16 @@
font-size: 0.7rem;
font-style: italic;
}

.triggers {
flex-wrap: wrap;

ion-col {
flex-basis: 50%;

.label-custom-icon {
display: flex;
align-items: center;

app-cardicon {
margin-right: 0.5em;
}
}
}
}

.color-B {
--background-checked: #00587c;
}

.color-R {
--background-checked: #6a111b;
}

.color-G {
--background-checked: #21613d;
}

.color-Y {
--background-checked: #7d700c;
}

.color-white {
--background-checked: #fff;
--checkmark-color: #000;
}

.color-black {
--background-checked: #000;
--checkmark-color: #fff;
}
}

.actions {
padding-top: 0.5em;
}

ion-list {
--width: 270px;
}

// The "pointer: fine" media feature tests whether
// the user has a pointing device (Desktop)
@media (pointer: fine) {
Expand All @@ -111,3 +72,7 @@
background-color: var(--ion-background-color);
}
}

::ng-deep .operator-select {
--width: 270px;
}

0 comments on commit 7c9a4c0

Please sign in to comment.