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