Make the profile editor banner shorter on desktop

This commit is contained in:
raucao committed 2026-11-26 17:22:19 +04:00
1 parent f8cd9e512d
commit 8bd0036deb
2 files changed
+2 -2

No files matched your search

@@ -18,7 +18,7 @@
:'nostr-profile-editor-flush-url-value' => nostr_media_settings_path
}
}) do |f| %>
<header class="-mx-8 -mt-8 relative aspect-[11/4] sm:aspect-[7/2] rounded-t
<header class="-mx-8 -mt-8 relative aspect-[11/4] sm:aspect-[4/1] rounded-t
bg-cover bg-center bg-gray-50"
style="<%= "background-image: url('#{banner_url}');" if banner_url %>"
data-nostr-profile-editor-target="bannerPreview">
@@ -31,7 +31,7 @@ RSpec.describe Settings::NostrEditProfileComponent, type: :component do
expect(root["class"]).not_to include("lg:w-[760px]")
header = rendered.css("header").first
expect(header["class"]).to include("aspect-[11/4]", "sm:aspect-[7/2]")
expect(header["class"]).to include("aspect-[11/4]", "sm:aspect-[4/1]")
expect(header["class"]).not_to include("aspect-[3/1]", "h-36", "h-44")
avatar = header.css(".absolute").find { |node| node["class"].to_s.include?("size-28") }