sidebar: Set tooltip of room rows

Room names can be large in some circumstances. Usually in dynamic
lists like this, where the textual content can be unpredictable,
adding a tooltip text is helpful.

Add that.
This commit is contained in:
Georges Basile Stavracas Neto 2023-03-22 11:33:51 -03:00 committed by Kévin Commaille
parent 03e0c4f18f
commit 7f5ce14c12
2 changed files with 7 additions and 2 deletions

View file

@ -257,8 +257,8 @@ sidebar-row > * {
margin-top: 2px;
}
sidebar-row > * {
padding: 9px 9px;
sidebar-row > * > * {
padding: 9px;
}
sidebar-row:focus > * {

View file

@ -3,6 +3,11 @@
<template class="SidebarRoomRow" parent="ContextMenuBin">
<child>
<object class="GtkBox">
<binding name="tooltip-text">
<lookup name="display-name">
<lookup name="room">SidebarRoomRow</lookup>
</lookup>
</binding>
<property name="spacing">12</property>
<child>
<object class="ComponentsAvatar" id="avatar">