improve tag card style
This commit is contained in:
parent
0894293620
commit
7a7754767f
@ -2,6 +2,7 @@
|
|||||||
- Add search to catalog, ammo, container, tag and range index pages
|
- Add search to catalog, ammo, container, tag and range index pages
|
||||||
- Tweak urls for catalog, ammo, containers, tags and shot records
|
- Tweak urls for catalog, ammo, containers, tags and shot records
|
||||||
- Fix bug with shot group chart not drawing lines between days correctly
|
- Fix bug with shot group chart not drawing lines between days correctly
|
||||||
|
- Improve cards across app (make them line up with each other)
|
||||||
|
|
||||||
# v0.7.2
|
# v0.7.2
|
||||||
- Code improvements
|
- Code improvements
|
||||||
|
@ -13,7 +13,7 @@ defmodule CanneryWeb.Components.TagCard do
|
|||||||
~H"""
|
~H"""
|
||||||
<div
|
<div
|
||||||
id={"tag-#{@tag.id}"}
|
id={"tag-#{@tag.id}"}
|
||||||
class="mx-4 my-2 px-8 py-4 space-x-4 flex justify-center items-center
|
class="mx-4 mb-2 px-8 py-4 space-x-4 flex justify-center items-center
|
||||||
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||||
transition-all duration-300 ease-in-out"
|
transition-all duration-300 ease-in-out"
|
||||||
>
|
>
|
||||||
|
@ -38,14 +38,13 @@
|
|||||||
</.form>
|
</.form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row flex-wrap justify-center items-center">
|
|
||||||
<%= if @tags |> Enum.empty?() do %>
|
<%= if @tags |> Enum.empty?() do %>
|
||||||
<h2 class="title text-xl text-primary-600">
|
<h2 class="title text-xl text-primary-600">
|
||||||
<%= gettext("No tags") %>
|
<%= gettext("No tags") %>
|
||||||
<%= display_emoji("😔") %>
|
<%= display_emoji("😔") %>
|
||||||
</h2>
|
</h2>
|
||||||
<% end %>
|
<% else %>
|
||||||
|
<div class="flex flex-row flex-wrap justify-center items-center">
|
||||||
<%= for tag <- @tags do %>
|
<%= for tag <- @tags do %>
|
||||||
<.tag_card tag={tag}>
|
<.tag_card tag={tag}>
|
||||||
<.link
|
<.link
|
||||||
@ -71,6 +70,7 @@
|
|||||||
</.tag_card>
|
</.tag_card>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:new, :edit] do %>
|
<%= if @live_action in [:new, :edit] do %>
|
||||||
|
@ -306,7 +306,7 @@ msgstr "Keine Einladung"
|
|||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:44
|
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr "Keine Tags"
|
msgstr "Keine Tags"
|
||||||
|
@ -85,7 +85,7 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/index.html.heex:93
|
#: lib/cannery_web/live/container_live/index.html.heex:93
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:138
|
#: lib/cannery_web/live/container_live/index.html.heex:138
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:65
|
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
||||||
|
@ -291,7 +291,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:44
|
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -292,7 +292,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:44
|
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -71,7 +71,7 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/index.html.heex:93
|
#: lib/cannery_web/live/container_live/index.html.heex:93
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:138
|
#: lib/cannery_web/live/container_live/index.html.heex:138
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:65
|
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -306,7 +306,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:44
|
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -85,7 +85,7 @@ msgstr "Está seguro que desea eliminar %{email}? Esta acción es permanente!"
|
|||||||
#: lib/cannery_web/live/container_live/index.html.heex:93
|
#: lib/cannery_web/live/container_live/index.html.heex:93
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:138
|
#: lib/cannery_web/live/container_live/index.html.heex:138
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:65
|
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr "Está seguro que desea eliminar %{name}?"
|
msgstr "Está seguro que desea eliminar %{name}?"
|
||||||
|
@ -306,7 +306,7 @@ msgstr "Aucune invitation"
|
|||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:44
|
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr "Aucun tag"
|
msgstr "Aucun tag"
|
||||||
|
@ -86,7 +86,7 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/index.html.heex:93
|
#: lib/cannery_web/live/container_live/index.html.heex:93
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:138
|
#: lib/cannery_web/live/container_live/index.html.heex:138
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:65
|
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
||||||
|
@ -302,7 +302,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:31
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:44
|
#: lib/cannery_web/live/tag_live/index.html.heex:43
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No tags"
|
msgid "No tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -81,7 +81,7 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/index.html.heex:93
|
#: lib/cannery_web/live/container_live/index.html.heex:93
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:138
|
#: lib/cannery_web/live/container_live/index.html.heex:138
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:65
|
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -70,7 +70,7 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/index.html.heex:93
|
#: lib/cannery_web/live/container_live/index.html.heex:93
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:138
|
#: lib/cannery_web/live/container_live/index.html.heex:138
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:59
|
#: lib/cannery_web/live/container_live/show.html.heex:59
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:65
|
#: lib/cannery_web/live/tag_live/index.html.heex:64
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Are you sure you want to delete %{name}?"
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Loading…
Reference in New Issue
Block a user