mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: don't show whitespace when no options are selected (#2493)
This commit is contained in:
parent
d44de62b90
commit
99ad9dcaff
@ -161,6 +161,9 @@ class CalendarDayCard extends StatelessWidget {
|
|||||||
});
|
});
|
||||||
|
|
||||||
renderHook.addSelectOptionHook((selectedOptions, cardData, _) {
|
renderHook.addSelectOptionHook((selectedOptions, cardData, _) {
|
||||||
|
if (selectedOptions.isEmpty) {
|
||||||
|
return const SizedBox.shrink();
|
||||||
|
}
|
||||||
final children = selectedOptions.map(
|
final children = selectedOptions.map(
|
||||||
(option) {
|
(option) {
|
||||||
return SelectOptionTag.fromOption(
|
return SelectOptionTag.fromOption(
|
||||||
|
Loading…
Reference in New Issue
Block a user