Project

General

Profile

Patch #44293 » 0001-Add-SVG-caret-to-account-menu-44293.patch

Marius BĂLTEANU, 2026-08-18 22:48

View differences:

app/assets/stylesheets/application.css
text-decoration: none;
}
.top-menu__links svg.icon-svg {
.top-menu__links svg.icon-svg, #account .dropdown-trigger .icon-svg {
stroke: var(--oc-gray-1);
transition: stroke 0.18s ease;
}
.top-menu__links a:hover svg.icon-svg, #account .dropdown-trigger:hover .icon-svg {
stroke: var(--oc-white);
}
app/assets/stylesheets/dropdown.css
.dropdown-trigger {
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
padding-block: 2px;
text-decoration: none;
app/views/layouts/base.html.erb
<div id="account" class="dropdown" data-controller="dropdown">
<a href="#" class="dropdown-trigger" data-action="click->dropdown#toggle">
<%= avatar(User.current, :size => "22") %>
<%= sprite_icon("angle-down", size: 14) %>
</a>
<div class="dropdown-content hidden" data-dropdown-target="content">
<div class="user-info">
(4-4/4)