From 1879828e710ab1383d78e6b175d87d835cb2a5d8 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 12 Oct 2021 19:32:06 +0800 Subject: [PATCH] minor fixes --- src/App.svelte | 2 +- src/Name.svelte | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index d41d98a..eb67d3f 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -208,7 +208,7 @@ #searchbox input[type=search] { flex-grow: 1; } - @media (max-width: 500px) { + @media (max-width: 700px) { #searchbox { flex-direction: column; } diff --git a/src/Name.svelte b/src/Name.svelte index 6b55495..953562a 100644 --- a/src/Name.svelte +++ b/src/Name.svelte @@ -75,7 +75,7 @@ function update_value() { if(input.value) { input.value = selected_name - }else{ + }else if(selected != null){ selected = null selected_name = '' } @@ -154,6 +154,7 @@ } input { padding-left: 2.5em; + width: 100%; } input, ul { border-radius: 0;