From b05eba37f174db562fec1b805be3e9f8f1cfe587 Mon Sep 17 00:00:00 2001 From: limited_dev Date: Wed, 7 Jun 2023 20:42:55 +0200 Subject: [PATCH] fix: fixed empty Image border in comments without images Signed-off-by: limited_dev --- .../Shared/Components/Comment.razor | 15 +++++++-------- .../Shared/Components/Comment.razor.css | 1 - ImageBoardServerApp/Shared/Components/Post.razor | 2 -- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/ImageBoardServerApp/Shared/Components/Comment.razor b/ImageBoardServerApp/Shared/Components/Comment.razor index cf6e091..fd07ad9 100644 --- a/ImageBoardServerApp/Shared/Components/Comment.razor +++ b/ImageBoardServerApp/Shared/Components/Comment.razor @@ -20,13 +20,13 @@ @if (opened) {
-
- @if (image != null) - { - string isActiveClass = isActive ? "active" : ""; - No Image found - } -
+ @if (image != null) + { + string isActiveClass = isActive ? "active" : ""; +
+ No Image found +
+ }
@for (var y = 0; y < comment.Content.Split("\n").Length; y++) { @@ -93,7 +93,6 @@ ]
} -
diff --git a/ImageBoardServerApp/Shared/Components/Comment.razor.css b/ImageBoardServerApp/Shared/Components/Comment.razor.css index e5877f7..5b36b91 100644 --- a/ImageBoardServerApp/Shared/Components/Comment.razor.css +++ b/ImageBoardServerApp/Shared/Components/Comment.razor.css @@ -61,7 +61,6 @@ } .threadImage img.active{ - /*transform: scale(3);*/ max-width:500px; width: 100%; } diff --git a/ImageBoardServerApp/Shared/Components/Post.razor b/ImageBoardServerApp/Shared/Components/Post.razor index d1bcec1..3270e4a 100644 --- a/ImageBoardServerApp/Shared/Components/Post.razor +++ b/ImageBoardServerApp/Shared/Components/Post.razor @@ -57,7 +57,6 @@ { className = "greenText"; } - @s  } @if (post.Content.Split("\n").Length > 6) @@ -75,7 +74,6 @@ { className = "greenText"; } - @s  } }