Mess with table widths

This commit is contained in:
Melon 2023-11-26 13:26:56 +00:00
parent a683aea5fb
commit 3d12a4dda3
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -95,15 +95,17 @@
{@const domain = site.domain.replace(/[^0-9a-z-]/gi, "-")}
<tr>
<td><a href="https://{site.domain}" target="_blank">{site.domain}</a></td>
<td class="branch-cell">
{#each site.branches as branch}
{#if branch == ""}
<div><a href="https://{domain}_main.sites.1f349.com" target="_blank" class="main-or-master">main or master</a></div>
{:else}
<div><a href="https://{domain}_{branch}.sites.1f349.com" target="_blank">{branch}</a></div>
{/if}
<div><button on:click={() => deleteBranch(site, branch)}>Delete Branch</button></div>
{/each}
<td>
<div class="branch-cell">
{#each site.branches as branch}
{#if branch == ""}
<div><a href="https://{domain}_main.sites.1f349.com" target="_blank" class="main-or-master">main or master</a></div>
{:else}
<div><a href="https://{domain}_{branch}.sites.1f349.com" target="_blank">{branch}</a></div>
{/if}
<div><button on:click={() => deleteBranch(site, branch)}>Delete Branch</button></div>
{/each}
</div>
</td>
<td><button on:click={() => resetSiteSecret(site)}>Reset Secret</button></td>
</tr>
@ -120,6 +122,13 @@
</div>
<style lang="scss">
.main-table {
th,
td {
width: 1%;
}
}
.branch-cell {
display: grid;
grid-template-columns: repeat(2, auto);