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