mirror of
https://github.com/1f349/admin.1f349.com.git
synced 2024-11-12 14:41:34 +00:00
Mess with table widths
This commit is contained in:
parent
a683aea5fb
commit
3d12a4dda3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user