Consistent popover size
parent
9df4dae975
commit
90b7cb3760
|
@ -285,12 +285,15 @@ export default class MessageComposer extends React.Component {
|
||||||
|
|
||||||
// Stickers
|
// Stickers
|
||||||
if (this.state.showStickers) {
|
if (this.state.showStickers) {
|
||||||
|
const popoverWidth = '300px';
|
||||||
|
const popoverHeight = '300px';
|
||||||
const stickerpackWidget = Widgets.getStickerpackWidgets()[0];
|
const stickerpackWidget = Widgets.getStickerpackWidgets()[0];
|
||||||
let stickersContent = <p>Click here to add your first sitckerpack</p>;
|
let stickersContent = <p>Click here to add your first sitckerpack</p>;
|
||||||
if (stickerpackWidget && stickerpackWidget.content && stickerpackWidget.content.url) {
|
if (stickerpackWidget && stickerpackWidget.content && stickerpackWidget.content.url) {
|
||||||
stickersContent = <div style={{
|
stickersContent = <div style={{
|
||||||
border: 'none',
|
border: 'none',
|
||||||
height: '160px',
|
height: popoverHeight,
|
||||||
|
width: popoverWidth,
|
||||||
}}>
|
}}>
|
||||||
<AppTile
|
<AppTile
|
||||||
id={stickerpackWidget.id}
|
id={stickerpackWidget.id}
|
||||||
|
@ -327,10 +330,10 @@ export default class MessageComposer extends React.Component {
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
borderRadius: '5px',
|
borderRadius: '5px',
|
||||||
width: 'initial',
|
|
||||||
padding: 0,
|
padding: 0,
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
height: '160px',
|
height: popoverHeight,
|
||||||
|
width: popoverWidth,
|
||||||
}}
|
}}
|
||||||
children={stickersContent}
|
children={stickersContent}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue