mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-13 03:03:06 +03:00
Stickerpack styling
This commit is contained in:
parent
2bb51bafe1
commit
52f28d09e0
1 changed files with 17 additions and 3 deletions
|
@ -283,7 +283,15 @@ export default class MessageComposer extends React.Component {
|
||||||
|
|
||||||
// Stickers
|
// Stickers
|
||||||
if (this.state.showStickers) {
|
if (this.state.showStickers) {
|
||||||
const stickersContent = <p>Click here to add your first sitckerpack</p>;
|
let stickerpackWidget = '';
|
||||||
|
let stickersContent = <p>Click here to add your first sitckerpack</p>;
|
||||||
|
if (true) {
|
||||||
|
stickersContent = <iframe src={stickerpackWidget} style={{
|
||||||
|
borderRadius: '5px',
|
||||||
|
border: 'none',
|
||||||
|
}}></iframe>;
|
||||||
|
}
|
||||||
|
|
||||||
hideStickersButton =
|
hideStickersButton =
|
||||||
<div
|
<div
|
||||||
key="controls_hide_stickers"
|
key="controls_hide_stickers"
|
||||||
|
@ -298,8 +306,14 @@ export default class MessageComposer extends React.Component {
|
||||||
target={this.refs.stickersContainer}
|
target={this.refs.stickersContainer}
|
||||||
show={this.state.showStickers}
|
show={this.state.showStickers}
|
||||||
onHide={this.onHideStickersClick}
|
onHide={this.onHideStickersClick}
|
||||||
containerStyle={{}}
|
containerStyle={{
|
||||||
style={{borderRadius: '5px'}}
|
zIndex: 100,
|
||||||
|
}}
|
||||||
|
style={{
|
||||||
|
borderRadius: '5px',
|
||||||
|
width: 'initial',
|
||||||
|
padding: 0,
|
||||||
|
}}
|
||||||
children={stickersContent}
|
children={stickersContent}
|
||||||
/>
|
/>
|
||||||
</div>;
|
</div>;
|
||||||
|
|
Loading…
Reference in a new issue