~mlb/linkhut

27e3f77542703a1163ed7e6bc327e1fd03804244 — Matías Larre Borges 4 years ago 310f29e
Minor change to the border of focused inputs
2 files changed, 7 insertions(+), 17 deletions(-)

M assets/css/app.scss
M lib/linkhut_web/views/link_view.ex
M assets/css/app.scss => assets/css/app.scss +1 -1
@@ 117,7 117,7 @@ fieldset {
        width: 100%;

        &:focus {
            border-color: $navy;
            border-color: $blue;
            box-shadow: 0 0 0 .2rem $light-blue;
        }
    }

M lib/linkhut_web/views/link_view.ex => lib/linkhut_web/views/link_view.ex +6 -16
@@ 50,23 50,13 @@ defmodule LinkhutWeb.LinkView do
    |> Atomex.generate_document()
  end

  defp feed_entry(
         %{
           url: url,
           title: title,
           notes: notes,
           tags: tags,
           inserted_at: inserted_at,
           user: user
         },
         html_url
       ) do
    Entry.new(url, inserted_at, title)
    |> Entry.link(url, rel: "alternate")
    |> Entry.content(notes)
    |> Entry.author(user.username, uri: html_url)
  defp feed_entry(link, html_url) do
    Entry.new(link.url, link.inserted_at, link.title)
    |> Entry.link(link.url, rel: "alternate")
    |> Entry.content(link.notes)
    |> Entry.author(link.user.username, uri: html_url)
    |> (fn entry ->
          Enum.reduce(tags, entry, fn tag, entry -> Entry.category(entry, tag, label: tag) end)
          Enum.reduce(link.tags, entry, fn tag, entry -> Entry.category(entry, tag, label: tag) end)
        end).()
    |> Entry.build()
  end