diff --git a/src/components/views/elements/AppTile.tsx b/src/components/views/elements/AppTile.tsx index ed8e88a5420..0d45d9145ec 100644 --- a/src/components/views/elements/AppTile.tsx +++ b/src/components/views/elements/AppTile.tsx @@ -77,6 +77,7 @@ interface IProps { // sets the pointer-events property on the iframe pointerEvents?: string; widgetPageTitle?: string; + hideMaximiseButton?: boolean; } interface IState { @@ -541,7 +542,7 @@ export default class AppTile extends React.Component { ); } let maxMinButton; - if (SettingsStore.getValue("feature_maximised_widgets")) { + if (SettingsStore.getValue("feature_maximised_widgets") && !this.props.hideMaximiseButton) { const widgetIsMaximised = WidgetLayoutStore.instance. isInContainer(this.props.room, this.props.app, Container.Center); maxMinButton = { showPopout={false} handleMinimisePointerEvents={true} userWidget={true} + hideMaximiseButton={true} />