diff --git a/src/utils.rs b/src/utils.rs index b938ebf..2abc4e1 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -69,7 +69,7 @@ pub fn generate_html(album: Result) -> (u16, Vec) { let elem = BytesStart::owned(b"style".to_vec(), 5); writer.write_event(Event::Start(elem)).unwrap(); - let elem = BytesText::from_plain_str("body { background-color: black; color: white; text-align: center; }\ndiv { border: 1px solid #fcc; background: #fee; padding: 0.5em 1em 0.5em 1em; color: black; }"); + let elem = BytesText::from_plain_str("body { background-color: black; color: white; text-align: center; }\ndiv { border: 1px solid #fcc; background: #fee; padding: 0.5em 1em 0.5em 1em; color: black; }\nimg, video { max-width: 100%; height: auto; object-fit: contain; }"); writer.write_event(Event::Text(elem)).unwrap(); let elem = BytesEnd::owned(b"style".to_vec());