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)
|
@if (opened)
|
||||||
{
|
{
|
||||||
<div class="threadContent">
|
<div class="threadContent">
|
||||||
<div class="threadImage">
|
|
||||||
@if (image != null)
|
@if (image != null)
|
||||||
{
|
{
|
||||||
string isActiveClass = isActive ? "active" : "";
|
string isActiveClass = isActive ? "active" : "";
|
||||||
|
<div class="threadImage">
|
||||||
<img @onclick="() => isActive = !isActive" class="@isActiveClass" src="@($"{@image.ImageLocation}?size=258x258")" alt="No Image found" />
|
<img @onclick="() => isActive = !isActive" class="@isActiveClass" src="@($"{@image.ImageLocation}?size=258x258")" alt="No Image found" />
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
<div class="threadTextContainer">
|
<div class="threadTextContainer">
|
||||||
@for (var y = 0; y < comment.Content.Split("\n").Length; y++)
|
@for (var y = 0; y < comment.Content.Split("\n").Length; y++)
|
||||||
{
|
{
|
||||||
|
@ -93,7 +93,6 @@
|
||||||
<span>]</span>
|
<span>]</span>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.threadImage img.active{
|
.threadImage img.active{
|
||||||
/*transform: scale(3);*/
|
|
||||||
max-width:500px;
|
max-width:500px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,6 @@
|
||||||
{
|
{
|
||||||
className = "greenText";
|
className = "greenText";
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class='threadText @className'>@s </span>
|
<span class='threadText @className'>@s </span>
|
||||||
}
|
}
|
||||||
@if (post.Content.Split("\n").Length > 6)
|
@if (post.Content.Split("\n").Length > 6)
|
||||||
|
@ -75,7 +74,6 @@
|
||||||
{
|
{
|
||||||
className = "greenText";
|
className = "greenText";
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class='threadText @className'>@s </span>
|
<span class='threadText @className'>@s </span>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue