sidebar: Fix positioning of sidebar entries

Rename CSS class to sidebar-entry to avoid getting the style from
GtkEntry.
Align text of entry with room names.
This commit is contained in:
Kévin Commaille 2023-11-19 17:01:26 +01:00
parent e0fd735622
commit d5d84fdb3f
No known key found for this signature in database
GPG Key ID: 29A48C1F03620416
2 changed files with 7 additions and 6 deletions

View File

@ -253,6 +253,7 @@ login {
sidebar-row > * {
margin: 0 12px;
padding: 9px;
border-radius: 6px;
transition-property: outline, outline-width, outline-offset, outline-color;
transition-duration: 300ms;
@ -262,10 +263,6 @@ sidebar-row > * {
margin-top: 2px;
}
sidebar-row > * > * {
padding: 9px;
}
sidebar-row:focus > * {
outline-color: alpha(@accent_color, 0.5);
outline-width: 2px;
@ -292,11 +289,15 @@ sidebar-row:not(.drop-mode) > *:hover {
background-color: alpha(currentColor, 0.19);
}
sidebar-row entry {
sidebar-row sidebar-entry {
background: none;
font-weight: bold;
}
sidebar-row sidebar-entry image {
min-width: 24px; /* Same width as avatars, so the text is aligned */
}
sidebar-row category {
margin-top: 6px;
font-size: 0.8em;

View File

@ -24,7 +24,7 @@ mod imp {
fn class_init(klass: &mut Self::Class) {
Self::bind_template(klass);
klass.set_css_name("entry");
klass.set_css_name("sidebar-entry");
}
fn instance_init(obj: &InitializingObject<Self>) {