aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/AntimodeMenu.tsx
diff options
context:
space:
mode:
authorzaultavangar <zaul_tavangar@brown.edu>2023-12-11 14:46:58 -0500
committerzaultavangar <zaul_tavangar@brown.edu>2023-12-11 14:46:58 -0500
commite4eac6e4256dc320f6c767ecbad54b83459c4331 (patch)
treeaa786fdfa921ff6b0be9a7563e6efa985edecc37 /src/client/views/AntimodeMenu.tsx
parent18a201d2cab686e350374413630f93cfa4612b11 (diff)
updates to map feature
Diffstat (limited to 'src/client/views/AntimodeMenu.tsx')
-rw-r--r--src/client/views/AntimodeMenu.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/AntimodeMenu.tsx b/src/client/views/AntimodeMenu.tsx
index 16e76694d..a6938acbd 100644
--- a/src/client/views/AntimodeMenu.tsx
+++ b/src/client/views/AntimodeMenu.tsx
@@ -139,10 +139,12 @@ export abstract class AntimodeMenu<T extends AntimodeMenuProps> extends React.Co
return <div className="antimodeMenu-dragger" key="dragger" onPointerDown={this.dragStart} style={{ width: '20px' }} />;
};
- protected getElement(buttons: JSX.Element) {
+ protected getElement(buttons: JSX.Element, expanded: boolean = false) {
+ const containerClass = expanded ? 'antimodeMenu-cont expanded' : 'antimodeMenu-cont';
+
return (
<div
- className="antimodeMenu-cont"
+ className={containerClass}
onPointerLeave={this.pointerLeave}
onPointerEnter={this.pointerEntered}
ref={this._mainCont}