mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 22:31:31 +01:00
Stickers
Co-authored-by: scott@signal.org Co-authored-by: ken@signal.org
This commit is contained in:
committed by
Scott Nonnenberg
parent
8c8856785b
commit
29de50c12a
@@ -418,3 +418,51 @@
|
||||
</div>
|
||||
</util.ConversationContext>
|
||||
```
|
||||
|
||||
### No border, no background
|
||||
|
||||
```jsx
|
||||
<util.ConversationContext theme={util.theme}>
|
||||
<div style={{ padding: '10px', backgroundColor: 'lightgrey' }}>
|
||||
<div>
|
||||
<Image
|
||||
height="512"
|
||||
width="512"
|
||||
noBorder={true}
|
||||
noBackground={true}
|
||||
attachment={{}}
|
||||
onClick={() => console.log('onClick')}
|
||||
onClickClose={attachment => console.log('onClickClose', attachment)}
|
||||
url={util.squareStickerObjectUrl}
|
||||
i18n={util.i18n}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Image
|
||||
height="256"
|
||||
width="256"
|
||||
noBorder={true}
|
||||
noBackground={true}
|
||||
attachment={{}}
|
||||
onClick={() => console.log('onClick')}
|
||||
onClickClose={attachment => console.log('onClickClose', attachment)}
|
||||
url={util.squareStickerObjectUrl}
|
||||
i18n={util.i18n}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Image
|
||||
height="128"
|
||||
width="128"
|
||||
noBorder={true}
|
||||
noBackground={true}
|
||||
attachment={{}}
|
||||
onClick={() => console.log('onClick')}
|
||||
onClickClose={attachment => console.log('onClickClose', attachment)}
|
||||
url={util.squareStickerObjectUrl}
|
||||
i18n={util.i18n}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</util.ConversationContext>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user