Skip to content

Commit

Permalink
fix(bridge-ui): transaction tab same min-height as bridge height
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfderechter committed Jan 5, 2023
1 parent 9b1d6b9 commit d0a6337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/bridge-ui/src/pages/home/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
import Transactions from "../../components/Transactions.svelte";
let activeTab: string = "bridge";
let bridgeWidth;
let bridgeHeight;
</script>

<div class="container mx-auto {activeTab === 'bridge' ? 'max-w-fit' : ''} text-center my-10" style="{activeTab === 'bridge' ? '' : 'width: '+bridgeWidth+'px;'}" bind:clientWidth={bridgeWidth}>
<div class="rounded-3xl border-2 border-zinc-800 border-solid p-2 md:p-6">
<div class="container mx-auto {activeTab === 'bridge' ? 'max-w-fit' : ''} text-center my-10" style="{activeTab === 'bridge' ? '' : 'width: '+bridgeWidth+'px;'}" bind:clientWidth={bridgeWidth} bind:clientHeight={bridgeHeight}>
<div class="rounded-3xl border-2 border-zinc-800 border-solid p-2 md:p-6" style="{activeTab === 'bridge' ? '' : 'min-height: '+bridgeHeight+'px;'}">
<div class="tabs mb-4">
<span
class="tab tab-bordered {activeTab === 'bridge' ? 'tab-active' : ''}"
Expand Down

0 comments on commit d0a6337

Please sign in to comment.