Skip to content

Commit

Permalink
Gi søkeboksen akkurat passe med plass og luft
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohansen committed Oct 12, 2023
1 parent a03d0f5 commit efe8d5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/matvaretabellen/pages.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@
page
(list
(SiteHeader {:home-url "/"})
[:div.search-input-wrap
(SearchInput {:label "Søk i Matvaretabellen"
:button {:text "Søk"}
:input {:name "my-search"}})])))
[:div.container
[:div.search-input-wrap
(SearchInput {:label "Søk i Matvaretabellen"
:button {:text "Søk"}
:input {:name "my-search"}})]])))

(defn render-page [context page]
(let [db (:foods/db context)]
Expand Down
3 changes: 2 additions & 1 deletion ui/resources/public/css/matvaretabellen.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@

.search-input-wrap {
margin: 40px auto;
max-width: 600px;
width: 600px;
max-width: 100%;
}

0 comments on commit efe8d5c

Please sign in to comment.