ig embed size

This commit is contained in:
Martti Malmi 2023-02-09 14:40:07 +02:00
parent 4c97f47f81
commit e3b15d13a6
2 changed files with 10 additions and 4 deletions

View File

@ -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;

View File

@ -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"