Skip to content

Commit

Permalink
chore: slightly improve apparance of event logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ac10n committed Oct 25, 2023
1 parent 511faa9 commit 7d32aeb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 0 additions & 1 deletion apps/taquito-test-dapp/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
const changeNetwork = (event: { detail: { value: string } }) => {
networkError = false;
showCustomNetworkInput = false;
const walletComponent = layout.getSideBar().getWallet();
switch (event.detail.value.toLocaleLowerCase()) {
case "mainnet":
store.updateNetworkType(NetworkType.MAINNET);
Expand Down
15 changes: 9 additions & 6 deletions apps/taquito-test-dapp/src/Layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts">
import Sidebar from "./lib/Sidebar.svelte";
import TaquitoLogo from "./lib/TaquitoLogo.svelte";
import store from "./store";
let side: Sidebar;
Expand All @@ -26,11 +25,17 @@
}
}
.events-container {
background-color: skyblue;
width: 100%;
grid-column: 1 / 3;
height: calc(25vh);
ul {
overflow-y: scroll;
background-color: skyblue;
height: 100%;
}
> span {
color: white;
font-weight: bold;
font-size: larger;
}
}
</style>
Expand All @@ -44,7 +49,7 @@
<Sidebar bind:this={side}/>
<slot />
<div class="events-container">
Events ({$store.eventLogs.length}): <button on:click={store.clearEvents}>clear</button>
<span>Events ({$store.eventLogs.length}):</span> <button on:click={store.clearEvents} style="display: inline;">clear</button>
<ul>
{#each $store.eventLogs as event}
<li>
Expand All @@ -55,5 +60,3 @@
</ul>
</div>
</main>
<TaquitoLogo dir="normal" />
<TaquitoLogo dir="reverse" />
4 changes: 2 additions & 2 deletions apps/taquito-test-dapp/src/lib/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<style lang="scss">
section {
padding: 10px;
height: calc(80vh - 20px);
height: calc(60vh - 20px);
color: white;
display: grid;
grid-template-rows: 8% 5% 87%;
Expand All @@ -43,7 +43,7 @@
ul {
height: 95%;
list-style-image: url(description_white_24dp.svg);
list-style-image: url(../assets/icons/description_white_24dp.svg);
list-style-position: inside;
overflow-y: scroll;
overflow-x: auto;
Expand Down

0 comments on commit 7d32aeb

Please sign in to comment.