aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-19 17:47:56 -0500
committermat <github@matdoes.dev>2022-03-19 17:47:56 -0500
commit701c2752cea451049dabe8197ab2bfbef949285d (patch)
treee3e8e646c445d80f4e0689d7468a90138cc36a3f
parent91eec9a7c7540d2ae2a368a77af1015c549c3ab5 (diff)
downloadskyblock-stats-701c2752cea451049dabe8197ab2bfbef949285d.tar.gz
skyblock-stats-701c2752cea451049dabe8197ab2bfbef949285d.tar.bz2
skyblock-stats-701c2752cea451049dabe8197ab2bfbef949285d.zip
Fix sizing of items on small screens
-rw-r--r--src/lib/sections/Inventories.svelte4
-rw-r--r--src/routes/loggedin.ts1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/sections/Inventories.svelte b/src/lib/sections/Inventories.svelte
index 84480ea..80966ef 100644
--- a/src/lib/sections/Inventories.svelte
+++ b/src/lib/sections/Inventories.svelte
@@ -126,13 +126,13 @@
}
@media only screen and (max-width: 480px) {
- .inventory-content:global(#inventory .item) {
+ .inventory-content :global(.item) {
/* there's no good way to override the existing 32px size without !important :( */
font-size: 24px !important;
}
}
@media only screen and (max-width: 350px) {
- .inventory-content:global(#inventory .item) {
+ .inventory-content :global(.item) {
font-size: 16px !important;
}
}
diff --git a/src/routes/loggedin.ts b/src/routes/loggedin.ts
index 10e8a24..0397130 100644
--- a/src/routes/loggedin.ts
+++ b/src/routes/loggedin.ts
@@ -1,6 +1,5 @@
import { API_URL } from '$lib/api'
import type { RequestHandler } from '@sveltejs/kit'
-import type { JSONValue } from '@sveltejs/kit/types/internal'
export const get: RequestHandler = async ({ url }) => {
const code = url.searchParams.get('code')