mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-23 22:27:13 -04:00
fix: don't show whitespace when no options are selected (#2493)
This commit is contained in:
parent
d44de62b90
commit
99ad9dcaff
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,9 @@ class CalendarDayCard extends StatelessWidget {
|
|||
});
|
||||
|
||||
renderHook.addSelectOptionHook((selectedOptions, cardData, _) {
|
||||
if (selectedOptions.isEmpty) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
final children = selectedOptions.map(
|
||||
(option) {
|
||||
return SelectOptionTag.fromOption(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue