aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesButtons.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2022-02-03 18:03:52 -0500
committermehekj <mehek.jethani@gmail.com>2022-02-03 18:03:52 -0500
commit922747ad959e95b592b4cde951b31f5503b8970b (patch)
treee25d747ba02b4cbfd76910b862b6aac104614daf /src/client/views/PropertiesButtons.tsx
parent30369cd78c1815a81bfe153c5a2d4551ad90dbe0 (diff)
parent4cdfa6c29701d372064eb4dc612807a27cb19857 (diff)
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/client/views/PropertiesButtons.tsx')
-rw-r--r--src/client/views/PropertiesButtons.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/PropertiesButtons.tsx b/src/client/views/PropertiesButtons.tsx
index 378c67253..f9dab9f82 100644
--- a/src/client/views/PropertiesButtons.tsx
+++ b/src/client/views/PropertiesButtons.tsx
@@ -206,6 +206,7 @@ export class PropertiesButtons extends React.Component<{}, {}> {
const layoutField = this.selectedDoc?.[Doc.LayoutFieldKey(this.selectedDoc)];
const isText = layoutField instanceof RichTextField;
const isInk = layoutField instanceof InkField;
+ const isMap = this.selectedDoc?.type === DocumentType.MAP;
const isCollection = this.selectedDoc?.type === DocumentType.COL;
const isStacking = this.selectedDoc?._viewType === CollectionViewType.Stacking;
const isFreeForm = this.selectedDoc?._viewType === CollectionViewType.Freeform;
@@ -221,7 +222,7 @@ export class PropertiesButtons extends React.Component<{}, {}> {
{toggle(this.dictationButton, { display: isNovice ? "none" : "" })}
{toggle(this.onClickButton)}
{toggle(this.fitWidthButton)}
- {toggle(this.fitContentButton, { display: !isFreeForm ? "none" : "" })}
+ {toggle(this.fitContentButton, { display: !isFreeForm && !isMap ? "none" : "" })}
{toggle(this.autoHeightButton, { display: !isText && !isStacking && !isTree ? "none" : "" })}
{toggle(this.maskButton, { display: !isInk ? "none" : "" })}
{toggle(this.chromeButton, { display: !isCollection || isNovice ? "none" : "" })}