mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Merge pull request #6926 from matrix-org/t3chguy/fix/18231
This commit is contained in:
commit
4416212d0b
2 changed files with 8 additions and 3 deletions
|
@ -391,7 +391,7 @@ limitations under the License.
|
||||||
.mx_RoomSublist_skeletonUI {
|
.mx_RoomSublist_skeletonUI {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
height: 288px;
|
height: 240px;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
background: $roomsublist-skeleton-ui-bg;
|
background: $roomsublist-skeleton-ui-bg;
|
||||||
|
@ -406,3 +406,8 @@ limitations under the License.
|
||||||
mask-image: url('$(res)/img/element-icons/roomlist/skeleton-ui.svg');
|
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
|
||||||
|
}
|
||||||
|
|
|
@ -449,8 +449,8 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderSublists(): React.ReactElement[] {
|
private renderSublists(): React.ReactElement[] {
|
||||||
// show a skeleton UI if the user is in no rooms and they are not filtering
|
// 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 &&
|
const showSkeleton = !this.state.isNameFiltering && !this.state.suggestedRooms?.length &&
|
||||||
Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length);
|
Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length);
|
||||||
|
|
||||||
return TAG_ORDER.reduce((tags, tagId) => {
|
return TAG_ORDER.reduce((tags, tagId) => {
|
||||||
|
|
Loading…
Reference in a new issue