From ba5a4e69b25aaeebfd608eb1270b83770556c09a Mon Sep 17 00:00:00 2001 From: shibao Date: Thu, 17 Nov 2022 22:16:46 -0500 Subject: [PATCH] fix table alignment --- CHANGELOG.md | 5 ++++- .../components/table_component.html.heex | 13 +++++++------ lib/cannery_web/live/home_live.ex | 2 +- mix.exs | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ac1e7b..e92d78f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ -# v0.7.0 +# v0.7.1 +- Fix table component alignment and styling + +# v0.7.1 - Add shading to table component - Fix chart to sum by day - Fix whitespace when copying invite url diff --git a/lib/cannery_web/components/table_component.html.heex b/lib/cannery_web/components/table_component.html.heex index bd91298..895bfa5 100644 --- a/lib/cannery_web/components/table_component.html.heex +++ b/lib/cannery_web/components/table_component.html.heex @@ -1,4 +1,4 @@ -
+
@@ -11,21 +11,22 @@ phx-value-sort-key={key} phx-target={@myself} > - <%= label %> + + <%= label %> <%= if @last_sort_key == key do %> <%= case @sort_mode do %> <% :asc -> %> - + <% :desc -> %> - + <% end %> <% else %> - + <% end %> <% else %> - <% end %> diff --git a/lib/cannery_web/live/home_live.ex b/lib/cannery_web/live/home_live.ex index d304276..23f7268 100644 --- a/lib/cannery_web/live/home_live.ex +++ b/lib/cannery_web/live/home_live.ex @@ -138,7 +138,7 @@ defmodule CanneryWeb.HomeLive do target="_blank" rel="noopener noreferrer" > -

0.7.0

+

0.7.1

diff --git a/mix.exs b/mix.exs index 3fe03a0..a3c5ff0 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Cannery.MixProject do def project do [ app: :cannery, - version: "0.7.0", + version: "0.7.1", elixir: "1.14.1", elixirc_paths: elixirc_paths(Mix.env()), compilers: Mix.compilers(),
+ <%= label %>