Skip to content

Commit

Permalink
Improved aesthethics of chain
Browse files Browse the repository at this point in the history
Now it looks better as they share a grid space
  • Loading branch information
Bullrich committed Nov 23, 2023
1 parent bec4d18 commit c204577
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions client/src/lib/components/Form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
</script>

<form on:submit|preventDefault={onSubmit} class="w-full">
<NetworkDropdown currentNetwork={networkData} />
<NetworkInput bind:network />
<div class="grid md:grid-cols-2 md:gap-x-4">
<NetworkInput bind:network />
<NetworkDropdown currentNetwork={networkData} />
</div>

<div class="inputs-container">
<label class="label" for="address">
Expand Down
12 changes: 6 additions & 6 deletions client/src/lib/components/NetworkDropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
export let currentNetwork: NetworkData;
</script>

<div class="dropdown dropdown-top w-full inputs-container">
<div class="dropdown w-full mb-14">
<label class="label" for="address">
<span class="form-label">Chain</span>
</label>
<div tabindex="-1" class="chain-dropdown w-full" data-testid="network-select">
<div class="w-full flex justify-between bg-transparent">
<div>
<div>
{currentNetwork.networkName}
</div>
<Chevron />
</div>
<Chevron />
</div>
</div>
<ul tabindex="-1" class="dropdown-content menu p-2 shadow bg-base-100 rounded-box w-full text-white">
Expand All @@ -40,7 +40,7 @@
font-size: 16px;
}
.inputs-container {
margin-bottom: 1.5rem;
.selected {
@apply bg-primary;
}
</style>
2 changes: 1 addition & 1 deletion client/src/lib/components/NetworkInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
class:hidden={!customValue}
/>
{#if !customValue}
<div class="dropdown w-full">
<div class="dropdown dropdown-top md:dropdown-bottom w-full">
<div tabindex="0" class="chain-dropdown" data-testid="dropdown">
<div class="w-full flex justify-between">
<div>
Expand Down

0 comments on commit c204577

Please sign in to comment.