diff --git a/res/css/views/rooms/_RoomSublist.scss b/res/css/views/rooms/_RoomSublist.scss index 95b9f1822df..0cf5f5a9e0c 100644 --- a/res/css/views/rooms/_RoomSublist.scss +++ b/res/css/views/rooms/_RoomSublist.scss @@ -391,7 +391,7 @@ limitations under the License. .mx_RoomSublist_skeletonUI { position: relative; margin-left: 4px; - height: 288px; + height: 240px; &::before { background: $roomsublist-skeleton-ui-bg; @@ -406,3 +406,8 @@ limitations under the License. mask-image: url('$(res)/img/element-icons/roomlist/skeleton-ui.svg'); } } + +.mx_RoomSublist_minimized .mx_RoomSublist_skeletonUI { + width: 32px; // cut off the horizontal lines in the svg + margin-left: 10px; // align with sublist + buttons +} diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index 5ae2939c743..326e5cd8922 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -449,8 +449,8 @@ export default class RoomList extends React.PureComponent { } private renderSublists(): React.ReactElement[] { - // show a skeleton UI if the user is in no rooms and they are not filtering - const showSkeleton = !this.state.isNameFiltering && + // show a skeleton UI if the user is in no rooms and they are not filtering and have no suggested rooms + const showSkeleton = !this.state.isNameFiltering && !this.state.suggestedRooms?.length && Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length); return TAG_ORDER.reduce((tags, tagId) => {