mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 06:23:56 +03:00
Remove top padding from app tile.
This commit is contained in:
parent
5e30468a00
commit
234ca8b062
3 changed files with 5 additions and 1 deletions
|
@ -336,7 +336,6 @@ function setWidget(event, roomId) {
|
||||||
if (userWidget) {
|
if (userWidget) {
|
||||||
console.warn('Adding user widget');
|
console.warn('Adding user widget');
|
||||||
const client = MatrixClientPeg.get();
|
const client = MatrixClientPeg.get();
|
||||||
// client.setAccountData('m.widgets', {});
|
|
||||||
const userWidgets = client.getAccountData('m.widgets').getContent() || {};
|
const userWidgets = client.getAccountData('m.widgets').getContent() || {};
|
||||||
|
|
||||||
// Delete existing widget with ID
|
// Delete existing widget with ID
|
||||||
|
|
|
@ -134,6 +134,10 @@ module.exports = {
|
||||||
menuStyle["backgroundColor"] = props.menuColour;
|
menuStyle["backgroundColor"] = props.menuColour;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isNaN(Number(props.menuPaddingTop))) {
|
||||||
|
menuStyle["paddingTop"] = props.menuPaddingTop;
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: If a menu uses getDefaultProps it clobbers the onFinished
|
// FIXME: If a menu uses getDefaultProps it clobbers the onFinished
|
||||||
// property set here so you can't close the menu from a button click!
|
// property set here so you can't close the menu from a button click!
|
||||||
const menu = (
|
const menu = (
|
||||||
|
|
|
@ -175,6 +175,7 @@ export default class Stickerpack extends React.Component {
|
||||||
menuHeight: this.popoverHeight,
|
menuHeight: this.popoverHeight,
|
||||||
element: this.state.stickersContent,
|
element: this.state.stickersContent,
|
||||||
onFinished: this.onFinished,
|
onFinished: this.onFinished,
|
||||||
|
menuPaddingTop: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue