CSS: use a $margin constant. Some CSS improvements (WIP).

This commit is contained in:
Greg Burri 2025-04-09 15:08:43 +02:00
parent c1fc9aa46f
commit 2a288abb07
9 changed files with 218 additions and 116 deletions

View file

@ -115,7 +115,7 @@ pub fn setup(
EventListener::new(&days, "click", move |event| {
let target: Element = event.target().unwrap().dyn_into().unwrap();
// log!(event); // TODO: Remove.
// gloo::console::log!(event); // TODO: Remove.
if target.class_name() == "number" && options.can_select_date {
let first_day = first_grid_day(state_clone.get_displayed_date());
@ -129,7 +129,7 @@ pub fn setup(
options,
recipe_scheduler,
);
} else if target.class_name() == "remove-scheduled-recipe" {
} else if target.class_name().contains("remove-scheduled-recipe") {
spawn_local(async move {
let mut recipe_id: i64 = 0;
let mut date: NaiveDate = NaiveDate::default();