Merge "Some tweaks to improve work with Material Theme"

This commit is contained in:
Zuul 2022-05-12 13:17:18 +00:00 committed by Gerrit Code Review
commit e6744f27dd
3 changed files with 10 additions and 2 deletions

View File

@ -75,6 +75,8 @@
// open panelgroup on nav_bar if exists
if (panelgroup.length) {
panelgroup.removeClass("collapsed").attr("aria-expanded", true);
panelgroup.siblings("ul").addClass("in").attr("style", null);
panelgroup.siblings("ul").removeClass("collapsed").attr("aria-expanded", true);
// get panelgroup label
labels.push(panelgroup.text().trim());
}

View File

@ -1,2 +1,8 @@
@import "bootstrap/styles";
@import "horizon/styles";
#sidebar {
.openstack-panel-group {
text-align: left;
}
}

View File

@ -21,7 +21,7 @@
{% with panels|has_permissions_on_list:user as filtered_panels %}
{% if filtered_panels %}
{% if group.name %}
<li class="nav-header">
<li class="nav-header openstack-panel-group">
<a data-toggle="collapse"
data-parent="#sidebar-drawer-{{ dashboard.slug }}"
data-target="#sidebar-drawer-{{ dashboard.slug }}-{{ group.slug }}"
@ -40,7 +40,7 @@
{% endif %}
{% for panel in filtered_panels %}
<li class="openstack-panel">
<a class="openstack-spin {% if current.slug == dashboard.slug and current_panel == panel.slug %}active{% endif %}" href="{{ panel.get_absolute_url }}"
<a class="openstack-spin openstack-panel {% if current.slug == dashboard.slug and current_panel == panel.slug %}active{% endif %}" href="{{ panel.get_absolute_url }}"
target="_self"
tabindex="{{ forloop.counter }}" >
{{ panel.name }}