fix: keep nav bar sticky at top (#943)

* fix: keep nav bar sticky at top

* fix: sticky on settings page

* fix: keep padding in settings page

* fix: make all settings page title sticky

* fix: make buttons sticky with title

* fix: set header bar min height

* fix: mobile responsive

* fix: reduce header bar
This commit is contained in:
Clayton
2026-02-10 16:37:42 -06:00
committed by GitHub
parent 8fcd2912cb
commit 17e2971603
12 changed files with 164 additions and 167 deletions

View File

@@ -1,7 +1,5 @@
<% if @newly_created && @plain_key %>
<header class="flex items-center justify-between">
<h1 class="text-primary text-xl font-medium">API Key Created Successfully</h1>
</header>
<%= content_for :page_title, "API Key Created Successfully" %>
<div class="bg-container rounded-xl shadow-border-xs p-4">
<div class="space-y-4">
@@ -55,14 +53,14 @@
</div>
</div>
<% elsif @current_api_key %>
<header class="flex items-center justify-between">
<h1 class="text-primary text-xl font-medium">Your API Key</h1>
<%= content_for :page_title, "Your API Key" %>
<%= content_for :page_actions do %>
<%= render DS::Link.new(
text: "Create New Key",
href: new_settings_api_key_path(regenerate: true),
variant: "secondary"
) %>
</header>
<% end %>
<div class="bg-container rounded-xl shadow-border-xs p-4">
<div class="space-y-4">
@@ -147,14 +145,14 @@
</div>
</div>
<% else %>
<header class="flex items-center justify-between">
<h1 class="text-primary text-xl font-medium"><%= t(".no_api_key.title") %></h1>
<%= content_for :page_title, t(".no_api_key.title") %>
<%= content_for :page_actions do %>
<%= render DS::Link.new(
text: t(".no_api_key.create_api_key"),
href: new_settings_api_key_path,
variant: "primary"
) %>
</header>
<% end %>
<div class="bg-container rounded-xl shadow-border-xs p-4">
<div class="space-y-4">