Skip to content

Commit

Permalink
Adds "is" to greter and less than operators
Browse files Browse the repository at this point in the history
Change operator selection dropdown width to accomodate change in text
  • Loading branch information
eireland committed Jan 26, 2024
1 parent 879972a commit 3bcdf7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/attribute-filter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ table tr:nth-child(even) {
}

.filter-operator-selection-container {
width: 155px;
width: 165px;
max-height: 190px;
padding: 9px 12px 5px 9px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
background-color: #fff;
position: relative;
right: -22px;
right: -5px;
top: -50px;
box-sizing: border-box;
overflow-y: auto;
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export interface AttrType {
export type TOperators = "equals" | "doesNotEqual" | "greaterThan" | "greaterThanOrEqualTo" | "lessThan"
| "lessThanOrEqualTo" | "between" | "top" | "bottom" | "aboveMean" | "belowMean";

export const operatorTextMap = {equals: "equals", doesNotEqual: "does not equal", greaterThan: "greater than", greaterThanOrEqualTo: "greater than or equal to",
lessThan: "less than", lessThanOrEqualTo: "less than or equal to", between: "between", top: "top", bottom: "bottom",
export const operatorTextMap = {equals: "equals", doesNotEqual: "does not equal", greaterThan: "is greater than", greaterThanOrEqualTo: "is greater than or equal to",
lessThan: "is less than", lessThanOrEqualTo: "is less than or equal to", between: "between", top: "top", bottom: "bottom",
aboveMean: "above mean", belowMean: "below mean"};
export const operatorSymbolMap = {equals: "=", doesNotEqual: "≠", greaterThan: ">", greaterThanOrEqualTo: ">=", lessThan: "<", lessThanOrEqualTo: "<="};

Expand Down

0 comments on commit 3bcdf7a

Please sign in to comment.