From 483ed9440db223a00c10762fe746a25c51c2b16f Mon Sep 17 00:00:00 2001 From: Thelonius Kort Date: Sat, 14 Jan 2023 22:05:48 +0100 Subject: [PATCH] Update some superficial things --- assets/css/article.css | 5 ++++- lib/outlook/internal_tree/internal_tree.ex | 3 +-- lib/outlook_web/live/translation_live/index.html.heex | 5 ----- lib/outlook_web/live/translation_live/new_edit.ex | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/assets/css/article.css b/assets/css/article.css index b9b9272..4da70ac 100644 --- a/assets/css/article.css +++ b/assets/css/article.css @@ -26,7 +26,6 @@ vertical-align: -2px; } - .article h4 { @apply font-semibold text-lg leading-8 text-zinc-800; } @@ -42,3 +41,7 @@ .article blockquote { @apply px-4 py-2 text-sm; } + +.article a { + @apply text-cyan-900; +} diff --git a/lib/outlook/internal_tree/internal_tree.ex b/lib/outlook/internal_tree/internal_tree.ex index 167a359..a6df36b 100644 --- a/lib/outlook/internal_tree/internal_tree.ex +++ b/lib/outlook/internal_tree/internal_tree.ex @@ -1,7 +1,6 @@ defmodule Outlook.InternalTree.InternalTree do - alias Outlook.InternalTree.InternalNode - alias Outlook.InternalTree.TranslationUnit + alias Outlook.InternalTree.{InternalNode,TranslationUnit} def garnish([%TranslationUnit{} = node | rest], %{tunits: _} = options) do [ set_attributes(node, options.tunits, options.tu_ids) diff --git a/lib/outlook_web/live/translation_live/index.html.heex b/lib/outlook_web/live/translation_live/index.html.heex index edcf9f0..46db787 100644 --- a/lib/outlook_web/live/translation_live/index.html.heex +++ b/lib/outlook_web/live/translation_live/index.html.heex @@ -1,10 +1,5 @@ <.header> Listing Translations - <:actions> - <.link patch={~p"/translations/new"}> - <.button>New Translation - - <.table id="translations" rows={@translations} row_click={&JS.navigate(~p"/translations/#{&1}")}> diff --git a/lib/outlook_web/live/translation_live/new_edit.ex b/lib/outlook_web/live/translation_live/new_edit.ex index 88baa12..c092260 100644 --- a/lib/outlook_web/live/translation_live/new_edit.ex +++ b/lib/outlook_web/live/translation_live/new_edit.ex @@ -18,7 +18,7 @@ defmodule OutlookWeb.TranslationLive.NewEdit do translation={@translation} translation_content={@translation_content} current_user={@current_user} - navigate={~p"/translations"} + navigate={~p"/articles/#{@translation.article}"} /> """ end