mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Fix mobile settings nav styles
This commit is contained in:
parent
d8cf35eca7
commit
d266b6a35e
4 changed files with 13 additions and 13 deletions
|
@ -5,11 +5,3 @@ import "controllers";
|
|||
Turbo.StreamActions.redirect = function () {
|
||||
Turbo.visit(this.target);
|
||||
};
|
||||
|
||||
if (typeof console !== "undefined") {
|
||||
console.debug = console.log;
|
||||
window.onerror = (msg, url, line) => {
|
||||
console.log(`Error: ${msg}\nURL: ${url}\nLine: ${line}`);
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<%= render "layouts/shared/htmldoc" do %>
|
||||
<div class="md:flex h-full bg-surface">
|
||||
<div class="flex flex-col lg:flex-row h-full bg-surface">
|
||||
<div class="p-4 w-full md:w-96 shrink-0 md:h-full md:overflow-y-auto">
|
||||
<%= render "settings/settings_nav" %>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<%= yield :head %>
|
||||
</head>
|
||||
|
||||
<body class="h-screen overflow-hidden lg:overflow-auto antialiased h-screen-safe ">
|
||||
<body class="h-full overflow-hidden lg:overflow-auto antialiased">
|
||||
<div class="fixed z-50 top-6 md:top-4 left-1/2 -translate-x-1/2 w-full md:w-80 px-4 md:px-0 mx-auto md:mx-0 md:right-auto mt-safe">
|
||||
<div id="notification-tray" class="space-y-1 w-full">
|
||||
<%= render_flash_notifications %>
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
<div class="space-y-4">
|
||||
<div class="flex items-center gap-2 p-1.5">
|
||||
<div class="hidden lg:flex items-center gap-2 p-1.5">
|
||||
<%= render LinkComponent.new(
|
||||
text: "Back",
|
||||
icon: "chevron-left",
|
||||
href: previous_path,
|
||||
variant: "ghost",
|
||||
class: "hidden md:inline-flex"
|
||||
) %>
|
||||
|
||||
<%= link_to previous_path, class: "hidden md:block uppercase bg-surface-inset-hover rounded-sm px-1 py-0.5 text-xs text-secondary shadow-sm ml-1 pointer-events-none", data: { controller: "hotkey", hotkey: "Escape" } do %>
|
||||
<kbd>esc</kbd>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<nav class="space-y-4 hidden md:block">
|
||||
<section class="space-y-2">
|
||||
<div class="flex items-center gap-2 px-3">
|
||||
|
@ -93,9 +93,17 @@
|
|||
<% end %>
|
||||
</section>
|
||||
</nav>
|
||||
<nav class="space-y-4 overflow-y-auto md:hidden" id="mobile-settings-nav">
|
||||
|
||||
<nav class="space-y-4 overflow-y-auto md:hidden" id="mobile-settings-nav">
|
||||
<ul class="flex space-y-1">
|
||||
<li>
|
||||
<%= render LinkComponent.new(
|
||||
text: "Back",
|
||||
icon: "chevron-left",
|
||||
href: previous_path,
|
||||
variant: "ghost",
|
||||
) %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<%= render "settings/settings_nav_item", name: t(".profile_label"), path: settings_profile_path, icon: "circle-user" %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue