removing fixed iframe width

This commit is contained in:
manetta 2021-03-12 21:20:14 +01:00
parent 3a0f5aa2ea
commit 9922d20a5c

View File

@ -88,7 +88,7 @@ class Logbot(Bot):
media_post = f'<img src="{ media_path }">' media_post = f'<img src="{ media_path }">'
elif message.url.lower().endswith(self.FILE_TYPES): elif message.url.lower().endswith(self.FILE_TYPES):
media_post = ( media_post = (
f'<iframe src="{ media_path }" width="800" height="1000"></iframe>' f'<iframe src="{ media_path }"></iframe>'
) )
elif message.url.lower().endswith(self.AUDIO_TYPES): elif message.url.lower().endswith(self.AUDIO_TYPES):
media_post = f'<audio controls src="{ media_path }"></audio>' media_post = f'<audio controls src="{ media_path }"></audio>'