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:
parent
e981425ce5
commit
9c06178a63
Web
@ -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>
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user