mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
Add manage stickerpacks link
This commit is contained in:
parent
38ed01bebd
commit
86da204169
@ -56,29 +56,50 @@ export default class Stickerpack extends React.Component {
|
|||||||
|
|
||||||
// Load stickerpack content
|
// Load stickerpack content
|
||||||
if (stickerpackWidget && stickerpackWidget.content && stickerpackWidget.content.url) {
|
if (stickerpackWidget && stickerpackWidget.content && stickerpackWidget.content.url) {
|
||||||
stickersContent = <div
|
stickersContent = (
|
||||||
id='stickersContent'
|
<div
|
||||||
className='mx_StickersContent'
|
style={{
|
||||||
style={{
|
overflow: 'hidden',
|
||||||
border: 'none',
|
height: '300px',
|
||||||
height: this.popoverHeight,
|
}}
|
||||||
width: this.popoverWidth,
|
>
|
||||||
}}
|
<div
|
||||||
>
|
id='stickersContent'
|
||||||
<AppTile
|
className='mx_StickersContent'
|
||||||
id={stickerpackWidget.id}
|
style={{
|
||||||
url={stickerpackWidget.content.url}
|
border: 'none',
|
||||||
name={stickerpackWidget.content.name}
|
height: this.popoverHeight - 30,
|
||||||
room={this.props.room}
|
width: this.popoverWidth,
|
||||||
type={stickerpackWidget.content.type}
|
}}
|
||||||
fullWidth={true}
|
>
|
||||||
userId={stickerpackWidget.sender || MatrixClientPeg.get().credentials.userId}
|
<AppTile
|
||||||
creatorUserId={MatrixClientPeg.get().credentials.userId}
|
id={stickerpackWidget.id}
|
||||||
waitForIframeLoad={true}
|
url={stickerpackWidget.content.url}
|
||||||
show={true}
|
name={stickerpackWidget.content.name}
|
||||||
showMenubar={false}
|
room={this.props.room}
|
||||||
/>
|
type={stickerpackWidget.content.type}
|
||||||
</div>;
|
fullWidth={true}
|
||||||
|
userId={stickerpackWidget.sender || MatrixClientPeg.get().credentials.userId}
|
||||||
|
creatorUserId={MatrixClientPeg.get().credentials.userId}
|
||||||
|
waitForIframeLoad={true}
|
||||||
|
show={true}
|
||||||
|
showMenubar={false}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div style={{
|
||||||
|
height: '20px',
|
||||||
|
position: 'absolute',
|
||||||
|
bottom: '5px',
|
||||||
|
right: '19px',
|
||||||
|
width: '263px',
|
||||||
|
textAlign: 'right',
|
||||||
|
padding: '5px',
|
||||||
|
borderTop: '1px solid #999',
|
||||||
|
}}>
|
||||||
|
Add sticker packs
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
// Default content to show if stickerpack widget not added
|
// Default content to show if stickerpack widget not added
|
||||||
stickersContent = <p>Click here to add your first sitckerpack</p>;
|
stickersContent = <p>Click here to add your first sitckerpack</p>;
|
||||||
|
Loading…
Reference in New Issue
Block a user