mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 22:23:23 +00:00
ig embed size
This commit is contained in:
parent
4c97f47f81
commit
e3b15d13a6
@ -298,10 +298,16 @@ textarea.new-msg {
|
||||
min-width: min(100%, 225px);
|
||||
}
|
||||
|
||||
.msg-content iframe.spotify {
|
||||
.msg-content iframe.audio {
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.msg-content iframe.instagram {
|
||||
width: 400px;
|
||||
height: 620px;
|
||||
max-height: 137vw;
|
||||
}
|
||||
|
||||
.msg-content audio {
|
||||
width: 100%;
|
||||
outline: none;
|
||||
|
@ -148,6 +148,7 @@ export default {
|
||||
replacedText = reactStringReplace(replacedText, igRegex, (match, i) => {
|
||||
return (
|
||||
<iframe
|
||||
class="instagram"
|
||||
key={match + i}
|
||||
width="650"
|
||||
height="400"
|
||||
@ -164,7 +165,7 @@ export default {
|
||||
replacedText = reactStringReplace(replacedText, spotifyRegex, (match, i) => {
|
||||
return (
|
||||
<iframe
|
||||
class="spotify"
|
||||
class="audio"
|
||||
key={match + i}
|
||||
width="650"
|
||||
height="200"
|
||||
@ -179,10 +180,9 @@ export default {
|
||||
|
||||
const tidalRegex = /(?:https?:\/\/)?(?:www\.)?(?:tidal\.com(?:\/browse)?\/track\/)([\d]+)?/g;
|
||||
replacedText = reactStringReplace(replacedText, tidalRegex, (match, i) => {
|
||||
console.log('tidal', match);
|
||||
return (
|
||||
<iframe
|
||||
class="spotify"
|
||||
class="audio"
|
||||
key={match + i}
|
||||
width="650"
|
||||
height="200"
|
||||
|
Loading…
Reference in New Issue
Block a user