diff --git a/app/assets/stylesheets/chats.scss b/app/assets/stylesheets/chats.scss index 0b9548c..5c6ed58 100644 --- a/app/assets/stylesheets/chats.scss +++ b/app/assets/stylesheets/chats.scss @@ -1,6 +1,6 @@ body { - height: 100vh; - max-height: 100vh; + height: 100svh; + max-height: 100svh; display: flex; flex-direction: column; diff --git a/app/assets/stylesheets/location.scss b/app/assets/stylesheets/location.scss index 0e8740a..0fde7dc 100644 --- a/app/assets/stylesheets/location.scss +++ b/app/assets/stylesheets/location.scss @@ -12,6 +12,14 @@ } } +.emergency-number { + display: flex; + + span:first-child { + flex-grow: 1; + } +} + .hero { text-align: center; @@ -23,10 +31,14 @@ } } -.emergency-number { - display: flex; +.location-tabs { + ul { + overflow-x: auto; + flex-wrap: nowrap; - span:first-child { - flex-grow: 1; + li { + display: inline-block; + float: none; + } } } diff --git a/app/javascript/controllers/index.js b/app/javascript/controllers/index.js index a7854b4..7384098 100644 --- a/app/javascript/controllers/index.js +++ b/app/javascript/controllers/index.js @@ -25,6 +25,9 @@ application.register("modal", ModalController) import NavbarLinkController from "./navbar_link_controller" application.register("navbar-link", NavbarLinkController) +import PagyController from "./pagy_controller" +application.register("pagy", PagyController) + import SearchCountriesController from "./search_countries_controller" application.register("search-countries", SearchCountriesController) diff --git a/app/javascript/controllers/pagy_controller.js b/app/javascript/controllers/pagy_controller.js new file mode 100644 index 0000000..0788889 --- /dev/null +++ b/app/javascript/controllers/pagy_controller.js @@ -0,0 +1,8 @@ +import { Controller } from "@hotwired/stimulus" +import Pagy from "pagy-module"; + +export default class extends Controller { + connect() { + Pagy.init(this.element) + } +} diff --git a/app/views/channels/_chat_message.html.erb b/app/views/channels/_chat_message.html.erb index 549714e..a953433 100644 --- a/app/views/channels/_chat_message.html.erb +++ b/app/views/channels/_chat_message.html.erb @@ -16,7 +16,7 @@ <% else %>
- <%= helper_user_initials(user: current_user) %> + <%= helper_user_initials(user: user) %>
<% end %> <% end %> diff --git a/app/views/locations/_tabs.html.erb b/app/views/locations/_tabs.html.erb index 7e7e1a8..6237162 100644 --- a/app/views/locations/_tabs.html.erb +++ b/app/views/locations/_tabs.html.erb @@ -1,5 +1,5 @@ -
-