From fa15a33353b579b512325e320dc24f268b875a74 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 16 May 2022 11:04:05 +0200 Subject: [PATCH] set image size in HTML --- src/lib/components/contact.svelte | 3 ++- src/lib/components/project.svelte | 5 +++- src/routes/index.svelte | 40 ++++++++++++++++++++++++++----- 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/src/lib/components/contact.svelte b/src/lib/components/contact.svelte index 210f58e..5626557 100644 --- a/src/lib/components/contact.svelte +++ b/src/lib/components/contact.svelte @@ -53,7 +53,8 @@ text-decoration: none; } img { - height: 100%; + height: 2em; + width: 2em; } .github { color: #333333; diff --git a/src/lib/components/project.svelte b/src/lib/components/project.svelte index 0736a94..d5930eb 100644 --- a/src/lib/components/project.svelte +++ b/src/lib/components/project.svelte @@ -4,6 +4,8 @@ export var tags = []; export var grayscale = false; export var extradark = false; + export var width = 0; + export var height = 0; function handle(e) { if(!link) { e.preventDefault(); @@ -15,7 +17,7 @@