hide room header when empty
This commit is contained in:
parent
b0d22e5570
commit
be69358ea4
1 changed files with 9 additions and 6 deletions
|
|
@ -94,11 +94,14 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
|
|||
),
|
||||
],
|
||||
),
|
||||
if (selectedSpace.children.isNotEmpty)
|
||||
.new(
|
||||
header: selectedSpace.room == null
|
||||
? null
|
||||
: const DividerWidget(Text("Rooms")),
|
||||
destinations: selectedSpace.children.toDestinations(isDm: isDm),
|
||||
destinations: selectedSpace.children.toDestinations(
|
||||
isDm: isDm,
|
||||
),
|
||||
),
|
||||
...selectedSpace.subSpaces.map(
|
||||
(subSpace) => NavigationRailM3ESection(
|
||||
|
|
|
|||
Loading…
Reference in a new issue