mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Move fix to a higher scope - fixes also sidebar for notifications, support, teams
This commit is contained in:
parent
fc3bd0d5ce
commit
13475f705c
@ -46,6 +46,14 @@
|
||||
.cp-sidebarlayout-category {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
svg {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.cp-sidebarlayout-category-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.leftside-menu-category_main();
|
||||
box-shadow: @cryptpad_ui_shadow;
|
||||
&:focus-visible {
|
||||
|
||||
@ -378,7 +378,7 @@ define([
|
||||
'data-category': key
|
||||
}, [
|
||||
icon,
|
||||
category.name || Messages[`${app}_cat_${key}`] || key,
|
||||
h('span.cp-sidebarlayout-category-name', category.name || Messages[`${app}_cat_${key}`] || key),
|
||||
]);
|
||||
var $item = $(item).appendTo(container);
|
||||
Util.onClickEnter($item, function () {
|
||||
|
||||
@ -245,7 +245,7 @@ define([
|
||||
showCategories(categories[key]);
|
||||
});
|
||||
|
||||
$category.append(Messages['notifications_cat_'+key] || key);
|
||||
$category.append(h('span.cp-sidebarlayout-category-name', Messages['notifications_cat_'+key] || key));
|
||||
});
|
||||
showCategories(categories[active]);
|
||||
};
|
||||
|
||||
@ -65,18 +65,6 @@
|
||||
}
|
||||
|
||||
#cp-sidebarlayout-container {
|
||||
#cp-sidebarlayout-leftside {
|
||||
.cp-sidebarlayout-category {
|
||||
white-space: nowrap;
|
||||
svg {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.cp-sidebarlayout-category-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
}
|
||||
#cp-sidebarlayout-rightside {
|
||||
input, button, span[tabindex="0"] {
|
||||
&:focus-visible {
|
||||
|
||||
@ -329,7 +329,7 @@ define([
|
||||
showCategories(categories[key]);
|
||||
});
|
||||
|
||||
$category.append(Messages['support_cat_'+key] || key);
|
||||
$category.append(h('span.cp-sidebarlayout-category-name', Messages['support_cat_'+key] || key));
|
||||
});
|
||||
showCategories(categories[active]);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user