Skip to content

Commit

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

<div class="container mx-auto max-w-fit text-center my-10">
<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' : 'w-fit'} text-center my-10" style="{activeTab === 'bridge' ? '' : 'min-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' && $transactions.length > 0 ? '' : 'min-height: '+bridgeHeight+'px;'}">
<div class="tabs mb-4">
<span
class="tab tab-bordered {activeTab === 'bridge' ? 'tab-active' : ''}"
Expand Down

0 comments on commit 85a5bfd

Please sign in to comment.