Skip to content

Commit

Permalink
fix: Fix menubar overflow by removing undo redo, some letters, and um…
Browse files Browse the repository at this point in the history
…ap icon (#466)

* fix overflow by removing undo redo, some letters, and umap icon

* undo removal of undo redo

Co-authored-by: atarashansky <[email protected]>
  • Loading branch information
atarashansky and atarashansky authored Sep 27, 2022
1 parent fafc539 commit 20251bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/__tests__/e2e/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const datasets = {
},
lasso: {
"coordinates-as-percent": { x1: 0.25, y1: 0.05, x2: 0.75, y2: 0.55 },
count: "357",
count: "332",
},
},
scatter: {
Expand Down
9 changes: 1 addition & 8 deletions client/src/components/embedding/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
Button,
ButtonGroup,
H4,
MaybeElement,
Popover,
Position,
Radio,
Expand All @@ -18,9 +17,6 @@ import { getDiscreteCellEmbeddingRowIndex } from "../../util/stateManager/viewSt
import { track } from "../../analytics";
import { EVENTS } from "../../analytics/events";

import heatmapIcon from "./heatmap.svg";
import { SvgIcon } from "../svgIcon";

// eslint-disable-next-line @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS.
type EmbeddingState = any;

Expand Down Expand Up @@ -78,16 +74,13 @@ class Embedding extends React.PureComponent<{}, EmbeddingState> {
<Button
type="button"
data-testid="layout-choice"
icon={
(<SvgIcon src={heatmapIcon} />) as unknown as MaybeElement
}
id="embedding"
style={{
cursor: "pointer",
}}
onClick={this.handleLayoutChoiceClick}
>
{layoutChoice?.current}: {crossfilter.countSelected()} out of{" "}
{layoutChoice?.current}: {crossfilter.countSelected()} of{" "}
{crossfilter.size()} cells
</Button>
</Tooltip>
Expand Down
2 changes: 0 additions & 2 deletions client/src/components/menubar/cellSetButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ class CellSetButton extends React.PureComponent {
}}
data-testid={`cellset-button-${eitherCellSetOneOrTwo}`}
>
{eitherCellSetOneOrTwo}
{": "}
<span data-testid={`cellset-count-${eitherCellSetOneOrTwo}`}>
{cellsSelected}
</span>
Expand Down

0 comments on commit 20251bb

Please sign in to comment.