Move fix to a higher scope - fixes also sidebar for notifications, support, teams

This commit is contained in:
DianaXWiki 2026-02-25 13:42:37 +02:00
parent fc3bd0d5ce
commit 13475f705c
5 changed files with 11 additions and 15 deletions

View File

@ -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 {

View File

@ -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 () {

View File

@ -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]);
};

View File

@ -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 {

View File

@ -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]);
};