1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-05-03 06:34:06 +02:00

Fix double padding in table cells with both clickable rows and custom classes

This commit is contained in:
chylex 2023-12-27 22:35:33 +01:00
parent e981425ce5
commit 9c06178a63
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
2 changed files with 6 additions and 3 deletions
Web
Phantom.Web.Components/Tables
Phantom.Web/wwwroot/css

View File

@ -1,10 +1,11 @@
@if (Url == null) { @using Phantom.Web.Components.Utils
@if (Url == null) {
<td @attributes="AdditionalAttributes"> <td @attributes="AdditionalAttributes">
@ChildContent @ChildContent
</td> </td>
} }
else { else {
<td class="p-0" @attributes="AdditionalAttributes"> <td @attributes="AdditionalAttributes" class="@(BlazorUtils.CombineClassNames(AdditionalAttributes, "p-0"))">
<a class="table-link" href="@Url">@ChildContent</a> <a class="table-link" href="@Url">@ChildContent</a>
</td> </td>
} }

View File

@ -67,7 +67,9 @@ code {
border-top: 2px solid #a6a6a6; border-top: 2px solid #a6a6a6;
} }
.table th, .table td, .table td > .table-link { .table th,
.table td,
.table td > .table-link {
padding: 0.5rem 1.25rem; padding: 0.5rem 1.25rem;
} }