Skip to content

Commit

Permalink
fix(components): tile transfer style
Browse files Browse the repository at this point in the history
  • Loading branch information
Gladear committed Nov 19, 2024
1 parent e78792e commit 1fc1e9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions apps/app_web/assets/css/components/tile.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,11 @@
.tile--neutral .\[custom\]tile__text {
@apply text-neutral-950;
}

/* ## Variants */

.variant\@tile--transfer {
@apply flex-col items-stretch
pr-4;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ defmodule AppWeb.TransfersComponents do
end

defp transfer_tile_classes(transfer) do
["tile pr-4", transfer_color_class(transfer.type)]
["tile variant@tile--transfer", transfer_color_class(transfer.type)]
end

defp transfer_color_class(:payment), do: "tile--red"
Expand Down

0 comments on commit 1fc1e9b

Please sign in to comment.