Skip to content
Snippets Groups Projects
Commit 1a94d33d authored by marcantoinem's avatar marcantoinem
Browse files

fix: many small UI tweaks

parent a8a3c365
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ where ...@@ -35,7 +35,7 @@ where
open.update(|b| *b = !*b); open.update(|b| *b = !*b);
submit(); submit();
} }
class="gap-2 items-center py-1.5 px-3 rounded-lg flex" class="gap-2 cursor-pointer items-center py-1.5 px-3 rounded-lg flex"
class=("bg-green-500", move || {open.get()}) class=("bg-green-500", move || {open.get()})
class=("bg-red-500", move || {!open.get()}) class=("bg-red-500", move || {!open.get()})
> >
......
...@@ -120,7 +120,7 @@ pub fn ScheduleComponent(schedule: Schedule, calendar: Rc<Calendar>) -> impl Int ...@@ -120,7 +120,7 @@ pub fn ScheduleComponent(schedule: Schedule, calendar: Rc<Calendar>) -> impl Int
let link: NodeRef<A> = create_node_ref(); let link: NodeRef<A> = create_node_ref();
view! { view! {
<div class="flex flex-col w-full items-center"> <div class="flex flex-col w-full items-center card p-2">
<a class="hidden" download="cours.ics" href=move || download.get() node_ref=link></a> <a class="hidden" download="cours.ics" href=move || download.get() node_ref=link></a>
<table class="cours"> <table class="cours">
{schedule.taken_courses.iter().enumerate().map(|(i, c)| view!{<Course i course={c} />}).collect_view()} {schedule.taken_courses.iter().enumerate().map(|(i, c)| view!{<Course i course={c} />}).collect_view()}
......
...@@ -72,7 +72,7 @@ $days: $time-width 10px repeat(5, 1fr); ...@@ -72,7 +72,7 @@ $days: $time-width 10px repeat(5, 1fr);
.event { .event {
border-radius: 0.5em; border-radius: 0.5em;
padding: 1px; padding: 1px;
margin: 0 2px; margin: 1px 1px 2px 2px;
font-weight: bold; font-weight: bold;
font-size: 70%; font-size: 70%;
text-align: center; text-align: center;
...@@ -91,13 +91,13 @@ $days: $time-width 10px repeat(5, 1fr); ...@@ -91,13 +91,13 @@ $days: $time-width 10px repeat(5, 1fr);
} }
.b1 { .b1 {
width: 45%; width: calc(50% - 2px);
margin-right: 55%; margin-right: calc(50% + 1px);
} }
.b2 { .b2 {
width: 45%; width: calc(50% - 2px);
margin-left: 55%; margin-left: calc(50% + 1px);
} }
.button-download { .button-download {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment