Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Hide maximise button in the sticker picker (#7488)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner authored Jan 10, 2022
1 parent 33b34d4 commit d00483b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/views/elements/AppTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ interface IProps {
// sets the pointer-events property on the iframe
pointerEvents?: string;
widgetPageTitle?: string;
hideMaximiseButton?: boolean;
}

interface IState {
Expand Down Expand Up @@ -541,7 +542,7 @@ export default class AppTile extends React.Component<IProps, IState> {
);
}
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 = <AccessibleButton
Expand Down
1 change: 1 addition & 0 deletions src/components/views/rooms/Stickerpicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ export default class Stickerpicker extends React.PureComponent<IProps, IState> {
showPopout={false}
handleMinimisePointerEvents={true}
userWidget={true}
hideMaximiseButton={true}
/>
</PersistedElement>
</div>
Expand Down

0 comments on commit d00483b

Please sign in to comment.