fix: fixed empty Image border in comments without images
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
47cde5f928
commit
b05eba37f1
3 changed files with 7 additions and 11 deletions
|
@ -20,13 +20,13 @@
|
|||
@if (opened)
|
||||
{
|
||||
<div class="threadContent">
|
||||
<div class="threadImage">
|
||||
@if (image != null)
|
||||
{
|
||||
string isActiveClass = isActive ? "active" : "";
|
||||
<img @onclick="() => isActive = !isActive" class="@isActiveClass" src="@($"{@image.ImageLocation}?size=258x258")" alt="No Image found" />
|
||||
}
|
||||
</div>
|
||||
@if (image != null)
|
||||
{
|
||||
string isActiveClass = isActive ? "active" : "";
|
||||
<div class="threadImage">
|
||||
<img @onclick="() => isActive = !isActive" class="@isActiveClass" src="@($"{@image.ImageLocation}?size=258x258")" alt="No Image found" />
|
||||
</div>
|
||||
}
|
||||
<div class="threadTextContainer">
|
||||
@for (var y = 0; y < comment.Content.Split("\n").Length; y++)
|
||||
{
|
||||
|
@ -93,7 +93,6 @@
|
|||
<span>]</span>
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -61,7 +61,6 @@
|
|||
}
|
||||
|
||||
.threadImage img.active{
|
||||
/*transform: scale(3);*/
|
||||
max-width:500px;
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,6 @@
|
|||
{
|
||||
className = "greenText";
|
||||
}
|
||||
|
||||
<span class='threadText @className'>@s </span>
|
||||
}
|
||||
@if (post.Content.Split("\n").Length > 6)
|
||||
|
@ -75,7 +74,6 @@
|
|||
{
|
||||
className = "greenText";
|
||||
}
|
||||
|
||||
<span class='threadText @className'>@s </span>
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue