make champions the root route, change filters overflow to auto
Some checks failed
ci / docker (push) Has been cancelled
Some checks failed
ci / docker (push) Has been cancelled
This commit is contained in:
parent
b611b296c3
commit
b5e58c4c25
@ -30,7 +30,7 @@ defmodule LolAnalyticsWeb.ChampionLive.Components.ChampionFilters do
|
|||||||
|
|
||||||
~H"""
|
~H"""
|
||||||
<div>
|
<div>
|
||||||
<div class="flex flex-row overflow-x-scroll justify-between">
|
<div class="flex flex-row overflow-x-auto justify-between">
|
||||||
<%= for role <- @roles do %>
|
<%= for role <- @roles do %>
|
||||||
<%= if (assigns.selectedrole == role.value) do %>
|
<%= if (assigns.selectedrole == role.value) do %>
|
||||||
<div phx-click="filter" phx-value-role={role.title} class={selected_class}>
|
<div phx-click="filter" phx-value-role={role.title} class={selected_class}>
|
||||||
|
@ -17,7 +17,7 @@ defmodule LoLAnalyticsWeb.Router do
|
|||||||
scope "/", LoLAnalyticsWeb do
|
scope "/", LoLAnalyticsWeb do
|
||||||
pipe_through :browser
|
pipe_through :browser
|
||||||
|
|
||||||
get "/", PageController, :home
|
live "/", ChampionLive.Index, :index
|
||||||
live "/champions", ChampionLive.Index, :index
|
live "/champions", ChampionLive.Index, :index
|
||||||
live "/champions/new", ChampionLive.Index, :new
|
live "/champions/new", ChampionLive.Index, :new
|
||||||
live "/champions/:id/edit", ChampionLive.Index, :edit
|
live "/champions/:id/edit", ChampionLive.Index, :edit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user