diff --git a/assets/css/_bootstrap_custom.scss b/assets/css/_bootstrap_custom.scss index 3f5ba490..c8e41308 100644 --- a/assets/css/_bootstrap_custom.scss +++ b/assets/css/_bootstrap_custom.scss @@ -11,7 +11,3 @@ padding: 0.5rem 0.5rem; background-color: inherit; } - -.navbar { - padding: 0; -} diff --git a/lib/mindwendel/brainstormings.ex b/lib/mindwendel/brainstormings.ex index 6de011f8..15cb5115 100644 --- a/lib/mindwendel/brainstormings.ex +++ b/lib/mindwendel/brainstormings.ex @@ -19,13 +19,13 @@ defmodule Mindwendel.Brainstormings do [%Brainstorming{}, ...] """ - def list_brainstormings_for(user_id) do + def list_brainstormings_for(user_id, limit \\ 3) do Repo.all( from brainstorming in Brainstorming, join: users in assoc(brainstorming, :users), where: users.id == ^user_id, order_by: [desc: brainstorming.inserted_at], - limit: 3 + limit: ^limit ) end diff --git a/lib/mindwendel_web/templates/layout/root.html.leex b/lib/mindwendel_web/templates/layout/root.html.leex index 39b8c3df..9cfc83b6 100644 --- a/lib/mindwendel_web/templates/layout/root.html.leex +++ b/lib/mindwendel_web/templates/layout/root.html.leex @@ -11,7 +11,7 @@
-