make champions the root route, change filters overflow to auto
Some checks failed
ci / docker (push) Has been cancelled

This commit is contained in:
Álvaro 2024-06-09 13:10:52 +02:00
parent b611b296c3
commit b5e58c4c25
2 changed files with 2 additions and 2 deletions

View File

@ -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}>

View File

@ -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