Make entirity of "Lists" dropdown clickable
This commit is contained in:
parent
e0e06aee48
commit
92544370b6
|
@ -27,3 +27,9 @@
|
||||||
.dropdown-toggle {
|
.dropdown-toggle {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up('md') {
|
||||||
|
.dropdown-menu--lists {
|
||||||
|
max-width: 275px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,13 +3,12 @@
|
||||||
= list_group_item t('views.general.timeline'), root_path
|
= list_group_item t('views.general.timeline'), root_path
|
||||||
- if APP_CONFIG.dig(:features, :public, :enabled)
|
- if APP_CONFIG.dig(:features, :public, :enabled)
|
||||||
= list_group_item t('views.general.public'), public_timeline_path
|
= list_group_item t('views.general.public'), public_timeline_path
|
||||||
.list-group-item.list-group-item-action.dropdown{ class: list ? 'active' : '' }
|
%a.list-group-item.list-group-item-action.dropdown.dropdown-toggle{ class: list ? 'active' : '', type: :button, data: { toggle: :dropdown }, aria: { haspopup: true, expanded: false } }
|
||||||
%a.dropdown-toggle{ type: :button, data: { toggle: :dropdown }, aria: { haspopup: true, expanded: false } }
|
|
||||||
- if list
|
- if list
|
||||||
= list.display_name
|
= list.display_name
|
||||||
- else
|
- else
|
||||||
Lists
|
Lists
|
||||||
.dropdown-menu
|
.dropdown-menu.dropdown-menu--lists
|
||||||
- if current_user.lists.empty?
|
- if current_user.lists.empty?
|
||||||
.p-3
|
.p-3
|
||||||
%p Looks like you don't have any lists yet.
|
%p Looks like you don't have any lists yet.
|
||||||
|
|
Loading…
Reference in New Issue