Skip to content

Commit 6436fcd

Browse files
committed
Fix edit button covered on some small screens
1 parent 5cbb2f6 commit 6436fcd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/blend/IPv4.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Represent IPv4 address including prefix notation
4040
<!-- for xs only -->
4141
<div class="sm:hidden items-end mb-2 flex" class:invisible={showingWholeInput}>
4242
<div class="grow" />
43-
<div class="flex text-2xl lt-xs:text-lg mr-2 items-center">
43+
<div class="flex text-2xl lt-sm:text-xl lt-xs:text-lg mr-2 items-center">
4444
<div>
4545
<div class="flex">
4646
{#each octets as octet, idx}
@@ -50,7 +50,7 @@ Represent IPv4 address including prefix notation
5050
{min}
5151
{max}
5252
strictRangeOnInput={true}
53-
class="text-center w-12 lt-xs:w-8 input-number-hide-arrows bg-gray-100 rounded font-mono"
53+
class="text-center w-12 lt-sm:w-10 lt-xs:w-8 input-number-hide-arrows bg-gray-100 rounded font-mono"
5454
value={octet}
5555
on:change={(e) => onChange(idx, e)}
5656
/>

src/components/parts/IPv4Input.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ A convenient addition to allow pasting/editing as whole
5656
</script>
5757

5858
<div class="relative">
59-
<div class="absolute text-gray-600 left-5 top-2 lt-sm:top-5 lt-sm:left-0 lt-xs:top--1">
59+
<div class="absolute text-gray-600 left-5 top-2 lt-sm:top-5 lt-sm:left-0 lt-xs:top--1 z-30">
6060
<button
6161
class="i-bi-pencil ml-1"
6262
on:click={onBtnClick}

0 commit comments

Comments
 (0)