chore: small styling changes

This commit is contained in:
alphafetus committed 2026-02-05 12:11:09 -05:00
1 parent fe5a107c7c
commit fdc5374f17
3 files changed
+13 -3

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ use leptos::prelude::*;
#[component] #[component]
pub fn Loading() -> impl IntoView { pub fn Loading() -> impl IntoView {
view! { view! {
<div class="size-20 mx-auto"> <div class="size-20 mx-auto mt-20">
<img src="/loading.gif" /> <img src="/loading.gif" />
</div> </div>
} }
+6 -1
View File
@@ -1,5 +1,5 @@
use leptos::prelude::*; use leptos::prelude::*;
use crate::components::{OutlinedTextField, TextFieldType, ValidatedForm}; use crate::components::{Loading, OutlinedTextField, TextFieldType, ValidatedForm};
use crate::pages::student::form_setup::use_student_form; use crate::pages::student::form_setup::use_student_form;
#[component] #[component]
@@ -7,6 +7,10 @@ pub fn StudentAcademicsPage() -> impl IntoView {
let controller = use_student_form("academics"); let controller = use_student_form("academics");
view! { view! {
<Show
when=move || controller.data_resource.get().is_some()
fallback=Loading
>
<div class="flex flex-1" /> <div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Academic Information" on_submit=controller.submit_action> <ValidatedForm title="Academic Information" on_submit=controller.submit_action>
@@ -53,5 +57,6 @@ pub fn StudentAcademicsPage() -> impl IntoView {
</ValidatedForm> </ValidatedForm>
</div> </div>
<div class="flex flex-1" /> <div class="flex flex-1" />
</Show>
} }
} }
+6 -1
View File
@@ -1,5 +1,5 @@
use leptos::prelude::*; use leptos::prelude::*;
use crate::components::{MultiEntry, ValidatedForm}; use crate::components::{Loading, MultiEntry, ValidatedForm};
use crate::input; use crate::input;
use crate::pages::student::form_setup::use_student_form; use crate::pages::student::form_setup::use_student_form;
@@ -8,6 +8,10 @@ pub fn StudentAthleticsPage() -> impl IntoView {
let controller = use_student_form("athletics"); let controller = use_student_form("athletics");
view! { view! {
<Show
when=move || controller.data_resource.get().is_some()
fallback=Loading
>
<div class="flex flex-1" /> <div class="flex flex-1" />
<div class="flex flex-col flex-2 mt-6"> <div class="flex flex-col flex-2 mt-6">
<ValidatedForm title="Athletics Information" on_submit=controller.submit_action> <ValidatedForm title="Athletics Information" on_submit=controller.submit_action>
@@ -53,5 +57,6 @@ pub fn StudentAthleticsPage() -> impl IntoView {
</ValidatedForm> </ValidatedForm>
</div> </div>
<div class="flex flex-1" /> <div class="flex flex-1" />
</Show>
} }
} }