fix: format of month can overflow bounds of panel if Long

This commit is contained in:
Ashley Wulber 2024-08-01 13:00:01 -04:00 committed by Michael Murphy
parent 02b1743a62
commit d654743234

View file

@ -366,7 +366,7 @@ impl cosmic::Application for Window {
let mut date_bag = Bag::empty();
date_bag.day = Some(components::Day::NumericDayOfMonth);
date_bag.month = Some(components::Month::Long);
date_bag.month = Some(components::Month::Short);
let formated = self.format(date_bag, &self.now);