Hide maximise button in the sticker picker (#7488)
This commit is contained in:
parent
33b34d4169
commit
d00483be3e
2 changed files with 3 additions and 1 deletions
|
@ -77,6 +77,7 @@ interface IProps {
|
||||||
// sets the pointer-events property on the iframe
|
// sets the pointer-events property on the iframe
|
||||||
pointerEvents?: string;
|
pointerEvents?: string;
|
||||||
widgetPageTitle?: string;
|
widgetPageTitle?: string;
|
||||||
|
hideMaximiseButton?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
|
@ -541,7 +542,7 @@ export default class AppTile extends React.Component<IProps, IState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let maxMinButton;
|
let maxMinButton;
|
||||||
if (SettingsStore.getValue("feature_maximised_widgets")) {
|
if (SettingsStore.getValue("feature_maximised_widgets") && !this.props.hideMaximiseButton) {
|
||||||
const widgetIsMaximised = WidgetLayoutStore.instance.
|
const widgetIsMaximised = WidgetLayoutStore.instance.
|
||||||
isInContainer(this.props.room, this.props.app, Container.Center);
|
isInContainer(this.props.room, this.props.app, Container.Center);
|
||||||
maxMinButton = <AccessibleButton
|
maxMinButton = <AccessibleButton
|
||||||
|
|
|
@ -304,6 +304,7 @@ export default class Stickerpicker extends React.PureComponent<IProps, IState> {
|
||||||
showPopout={false}
|
showPopout={false}
|
||||||
handleMinimisePointerEvents={true}
|
handleMinimisePointerEvents={true}
|
||||||
userWidget={true}
|
userWidget={true}
|
||||||
|
hideMaximiseButton={true}
|
||||||
/>
|
/>
|
||||||
</PersistedElement>
|
</PersistedElement>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue