1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

Remove top padding from app tile.

This commit is contained in:
Richard Lewis
2018-02-08 17:50:30 +00:00
parent 5e30468a00
commit 234ca8b062
3 changed files with 5 additions and 1 deletions

View File

@@ -134,6 +134,10 @@ module.exports = {
menuStyle["backgroundColor"] = props.menuColour;
}
if (!isNaN(Number(props.menuPaddingTop))) {
menuStyle["paddingTop"] = props.menuPaddingTop;
}
// FIXME: If a menu uses getDefaultProps it clobbers the onFinished
// property set here so you can't close the menu from a button click!
const menu = (

View File

@@ -175,6 +175,7 @@ export default class Stickerpack extends React.Component {
menuHeight: this.popoverHeight,
element: this.state.stickersContent,
onFinished: this.onFinished,
menuPaddingTop: 0,
});