From 51fbb8d0a758a65c402f50459647e2336b3ca9c5 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Thu, 4 Aug 2022 20:14:17 -0400 Subject: [PATCH] Improve post image size --- static/css/album.css | 10 ++++++---- static/css/base.css | 2 ++ views/post.hbs | 13 +++++++------ 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/static/css/album.css b/static/css/album.css index d20a804..9977ece 100644 --- a/static/css/album.css +++ b/static/css/album.css @@ -2,13 +2,15 @@ h1 { margin: 0; } -p { - margin: 0.5em 0; +main p, h4 { + text-align: center; } -video, -img { +main video, +main img { + margin: 1em 0; max-width: 100%; + max-height: 85vh; } .pfp { diff --git a/static/css/base.css b/static/css/base.css index 623fc0e..a79ea75 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -33,6 +33,8 @@ nav { filter: invert(1) hue-rotate(180deg); } +section, +header, main { margin: 0 24vw; } diff --git a/views/post.hbs b/views/post.hbs index a94d391..187ccb1 100644 --- a/views/post.hbs +++ b/views/post.hbs @@ -20,11 +20,12 @@ {{> partials/header }} -
+

{{post.Title}}

-

{{post.CreatedAt}}

- +
+ +
{{#if post.User.Username}}
@@ -68,8 +69,6 @@ {{/equal}}
- -
{{/each}} {{#if post.tags}} @@ -88,7 +87,9 @@ {{/each}}
{{/if}} +
+
{{#if comments}}

@@ -105,7 +106,7 @@

{{/if}} -
+ {{> partials/footer }}