refactor: added typing for props, fixed overflow
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
background-color: #eaffeb;
|
background-color: #eaffeb;
|
||||||
color: #2e4653;
|
color: #2e4653;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0.2rem 0.6rem;
|
padding: 0.2rem 0.2rem;
|
||||||
}
|
}
|
||||||
.compulsoryTagYellow {
|
.compulsoryTagYellow {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
background-color: #ffffd4;
|
background-color: #ffffd4;
|
||||||
color: #534b2e;
|
color: #534b2e;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0.2rem 0.6rem;
|
padding: 0.2rem 0.2rem;
|
||||||
}
|
}
|
||||||
.compulsoryTagRed {
|
.compulsoryTagRed {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -57,6 +57,6 @@
|
|||||||
background-color: #ffcece;
|
background-color: #ffcece;
|
||||||
color: #532e2e;
|
color: #532e2e;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0.2rem 0.6rem;
|
padding: 0.2rem 0.2rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3,8 +3,16 @@
|
|||||||
import crossUrl from "$lib/assets/cross.svg";
|
import crossUrl from "$lib/assets/cross.svg";
|
||||||
import Textarea from "./inputs/Textarea.svelte";
|
import Textarea from "./inputs/Textarea.svelte";
|
||||||
import type { Table } from "$lib";
|
import type { Table } from "$lib";
|
||||||
|
import type { SupabaseClient } from "@supabase/supabase-js";
|
||||||
|
import type { Database } from "$lib/database.d.ts";
|
||||||
|
|
||||||
const { data, studySpaceId, hideFunc } = $props();
|
interface Props {
|
||||||
|
data: { supabase: SupabaseClient<Database> };
|
||||||
|
studySpaceId: string;
|
||||||
|
hideFunc: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { data, studySpaceId, hideFunc }: Props = $props();
|
||||||
const { supabase } = $derived(data);
|
const { supabase } = $derived(data);
|
||||||
|
|
||||||
let uploading = $state(false);
|
let uploading = $state(false);
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
.compulsoryContainer {
|
.compulsoryContainer {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 0.5rem;
|
gap: 0.4rem;
|
||||||
font-size: 0.875rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user