Skip to content

Commit

Permalink
#115 Improve select profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
angel-git committed Apr 21, 2024
1 parent bf7d644 commit b996d06
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@
</form>
{#if sessions.length > 0}
<h5>Select profile to load:</h5>
{#each sessions as session}
<div class="session">
<div>{session.username} ({session.id})</div>
<button on:click={() => loadProfile(session)}>load</button>
</div>
{/each}
<div class="sessions">
{#each sessions as session}
<div class="session">
<div>{session.username} ({session.id})</div>
<button on:click={() => loadProfile(session)}>load</button>
</div>
{/each}
</div>
{/if}
</div>

Expand All @@ -91,9 +93,18 @@
z-index: 10;
}
.session {
.sessions {
display: flex;
justify-content: space-between;
flex-direction: column;
gap: 16px;
}
.sessions .session {
display: flex;
justify-content: space-between;
}
.sessions .session:hover {
color: var(--color-highlight);
}
</style>

0 comments on commit b996d06

Please sign in to comment.