diff --git a/src/components/ItemCard.astro b/src/components/ItemCard.astro index eb8fcf1..1bb5f7f 100644 --- a/src/components/ItemCard.astro +++ b/src/components/ItemCard.astro @@ -1,4 +1,5 @@ --- +import { Image } from 'astro:assets'; import { getHighestWeightedLanguage, getLocales, getName } from '../lib/utils/langDriver'; interface Props { @@ -16,7 +17,7 @@ interface Props { const lang = await getLocales(Astro.cookies.get('language')?.value ?? await getHighestWeightedLanguage(Astro.request.headers.get('accept-language'))); ---
- + {Astro.props.id}
diff --git a/src/components/NavBar.astro b/src/components/NavBar.astro index 641d013..b38b04a 100644 --- a/src/components/NavBar.astro +++ b/src/components/NavBar.astro @@ -1,5 +1,6 @@ --- import { ObjectId } from 'mongodb'; +import { Image } from 'astro:assets'; import { checkForUnreadMails } from '../lib/db/mails'; import { getHighestWeightedLanguage, getLocales, getName } from '../lib/utils/langDriver'; @@ -160,8 +161,8 @@ const hasUnreadMail = await checkForUnreadMails(new ObjectId(userId)); )} - {loggedIn === "true" ? : ""} - {loggedIn === "true" ? : ""} + {loggedIn === "true" ? : ""} + {loggedIn === "true" ? : ""}
@@ -225,6 +226,7 @@ nav ul { } .avatar-icon { + width: 50px; height: 50px; border-radius: 50%; border: 1px solid white; @@ -233,6 +235,7 @@ nav ul { } .mail-icon { + width: 50px; height: 50px; border-radius: 50%; /* border: 1px solid white; */ diff --git a/src/components/ResourceBar.astro b/src/components/ResourceBar.astro index 38cafc0..f3f83c8 100644 --- a/src/components/ResourceBar.astro +++ b/src/components/ResourceBar.astro @@ -1,5 +1,6 @@ --- import { ObjectId } from 'mongodb'; +import { Image } from 'astro:assets'; import { getHighestWeightedLanguage, getLocales, getName } from '../lib/utils/langDriver'; import { getAllResources } from '../lib/db/resources'; import locationManager from '../lib/classes/managers/LocationManager'; @@ -30,7 +31,7 @@ for(const key of planet.resources.resources) { data-res-amount={res.amount} data-res-mining-rate={res.perHourMiningRate} > - x.id === res.id)?.icon ?? "#"} alt={res.id} class="icon" /> + x.id === res.id)?.icon ?? "#"} alt={res.id} class="icon" width={32} height={32} />
{getName(lang, 'resources', res.id)} @@ -133,10 +134,6 @@ for(const key of planet.resources.resources) { margin-bottom: 8px; } -.resourcebar-item-icon img { - width: 100%; -} - .resourcebar-item-text-wrapper { display: flex; flex-direction: column;