Skip to content

Commit

Permalink
fix: Fix table.
Browse files Browse the repository at this point in the history
  • Loading branch information
GSMLG-BOT committed Jul 9, 2024
1 parent 85558ca commit 37c5220
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions apps/phoenix_duskmoon/lib/phoenix_duskmoon/component/table.ex
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ defmodule PhoenixDuskmoon.Component.Table do
data-label={col.label}
role="cell"
class={[
"px-4 py-2",
if(@border, do: "border"),
"grid before:content-[attr(data-label)] before:font-bold grid-cols-[6em_auto] gap-x-2 gap-y-4",
"md:table-cell md:before:hidden",
Map.get(col, :class, "")
]}
><%= render_slot(col, row) %></td>
Expand All @@ -183,10 +179,6 @@ defmodule PhoenixDuskmoon.Component.Table do
data-label={col.label}
role="cell"
class={[
"px-4 py-2",
if(@border, do: "border"),
"grid before:content-[attr(data-label)] before:font-bold grid-cols-[6em_auto] gap-x-2 gap-y-4",
"md:table-cell md:before:hidden",
Map.get(col, :class, "")
]}
><%= render_slot(col, row) %></td>
Expand All @@ -205,7 +197,7 @@ defmodule PhoenixDuskmoon.Component.Table do
colspan={length(@col)}
role="cell"
class={[
"px-4 py-2",
"p-0",
if(@border, do: "border"),
]}
><%= render_slot(expand, row) %></td>
Expand Down

0 comments on commit 37c5220

Please sign in to comment.