Skip to content

Commit

Permalink
remove inline styles (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Sep 9, 2024
1 parent 0951949 commit dd32c96
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
5 changes: 5 additions & 0 deletions assets/scss/_bootstrap_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
@extend .card-footer;
padding: 0.5rem 0.5rem;
background-color: inherit;
}

.card-mindwendel {
@extend .card;
width: 394px;
}
4 changes: 1 addition & 3 deletions lib/mindwendel_web/live/idea_live/index_component.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
>
<%= for idea <- @ideas do %>
<div
class="card m-3 shadow-sm p-2 rounded IndexComponent__IdeaCard"
-
style="width: 394px;"
class="card-mindwendel m-3 shadow-sm p-2 rounded IndexComponent__IdeaCard"
role={if has_move_permission(@brainstorming, @current_user), do: "button", else: ""}
data-testid={idea.id}
data-id={idea.id}
Expand Down
8 changes: 4 additions & 4 deletions priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ msgstr "%{name} - Editieren"
msgid "%{name} - New Idea"
msgstr "%{name} - Neue Idee"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:21
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:19
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete this idea?"
msgstr "Möchtest du die Idee löschen?"
Expand Down Expand Up @@ -118,7 +118,7 @@ msgstr "Neue Idee"
msgid "New idea page (Hotkey: i)"
msgstr "Neue Idee (Hotkey: i)"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:117
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:115
#, elixir-autogen, elixir-format
msgid "No ideas brainstormed"
msgstr "Bisher keine Ideen vorhanden"
Expand Down Expand Up @@ -218,7 +218,7 @@ msgstr "Einige Pflichtfelder fehlen oder sind inkorrekt:"
msgid "Username"
msgstr "Nutzername"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:65
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:63
#: lib/mindwendel_web/templates/admin/brainstorming/export.html.heex:3
#, elixir-autogen, elixir-format
msgid "By"
Expand Down Expand Up @@ -346,7 +346,7 @@ msgstr "Download als SVG"
msgid "Brainstorming delete are you sure"
msgstr "Bist du sicher, dass das Brainstorming gelöscht werden soll?"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:24
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:22
#, elixir-autogen, elixir-format
msgid "Edit Idea"
msgstr "Idee bearbeiten"
Expand Down
8 changes: 4 additions & 4 deletions priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ msgstr ""
msgid "%{name} - New Idea"
msgstr ""

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:21
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:19
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete this idea?"
msgstr ""
Expand Down Expand Up @@ -117,7 +117,7 @@ msgstr ""
msgid "New idea page (Hotkey: i)"
msgstr ""

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:117
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:115
#, elixir-autogen, elixir-format
msgid "No ideas brainstormed"
msgstr ""
Expand Down Expand Up @@ -217,7 +217,7 @@ msgstr ""
msgid "Username"
msgstr ""

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:65
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:63
#: lib/mindwendel_web/templates/admin/brainstorming/export.html.heex:3
#, elixir-autogen, elixir-format
msgid "By"
Expand Down Expand Up @@ -345,7 +345,7 @@ msgstr ""
msgid "Brainstorming delete are you sure"
msgstr ""

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:24
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:22
#, elixir-autogen, elixir-format
msgid "Edit Idea"
msgstr ""
Expand Down
8 changes: 4 additions & 4 deletions priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ msgstr ""
msgid "%{name} - New Idea"
msgstr ""

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:21
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:19
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete this idea?"
msgstr ""
Expand Down Expand Up @@ -118,7 +118,7 @@ msgstr ""
msgid "New idea page (Hotkey: i)"
msgstr ""

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:117
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:115
#, elixir-autogen, elixir-format
msgid "No ideas brainstormed"
msgstr ""
Expand Down Expand Up @@ -218,7 +218,7 @@ msgstr ""
msgid "Username"
msgstr ""

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:65
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:63
#: lib/mindwendel_web/templates/admin/brainstorming/export.html.heex:3
#, elixir-autogen, elixir-format
msgid "By"
Expand Down Expand Up @@ -346,7 +346,7 @@ msgstr "Download as svg"
msgid "Brainstorming delete are you sure"
msgstr "Are you sure that you want to delete this brainstorming?"

#: lib/mindwendel_web/live/idea_live/index_component.html.heex:24
#: lib/mindwendel_web/live/idea_live/index_component.html.heex:22
#, elixir-autogen, elixir-format
msgid "Edit Idea"
msgstr ""
Expand Down

0 comments on commit dd32c96

Please sign in to comment.