8000 fix table of details navbar · fskydev/pyscript@0fc46d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fc46d2

Browse files
committed
fix table of details navbar
1 parent 9df0974 commit 0fc46d2

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

pyscriptjs/src/ComponentDetailsNav.svelte

+11Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@
4949
right: 0;
5050
transition: right 1s;
5151
}
52+
53+
.properties{
54+
font-family: 'Courier New', monospace;
55+
}
5256
5357
</style>
5458

55-
<nav id="component-detail-bar" class="absolute z-10 h-full mb-6 pin-y bg-white shadow-md rightsidebar" class:rightsidebar-inactive="{ !showMe }" class:slide-right="{ showMe }">
59+
<nav id="component-detail-bar" class="properties absolute z-10 h-full mb-6 pin-y bg-white shadow-md rightsidebar" class:rightsidebar-inactive="{ !showMe }" class:slide-right="{ showMe }">
5660
<div class="flex flex-column w-full text-lg p-4 bg-grey-lighter shadow-md">
5761
<button id="menu-switch" class="focus:outline-none" on:click={toggleNavBar}>
5862
<Fa icon={faArrowRight} />
@@ -62,19 +66,19 @@
6266
</div>
6367
</div>
6468
<form>
65-
<table class="table-fixed">
69+
<table class="table-fixed border-collapse table-auto w-full text-sm">
6670
<thead>
6771
<tr>
68-
<th class="text-left">Property</th>
69-
<th class="text-right">Value</th>
72+
<th class="text-left border-b dark:border-slate-600 font-medium p-4 pl-8 pt-0 pb-3 text-slate-400 dark:text-slate-200 text-left">Property</th>
73+
<th class="text-center border-b dark:border-slate-600 font-medium p-4 pl-8 pt-0 pb-3 text-slate-400 dark:text-slate-200 text-left">Value</th>
7074
</tr>
7175
</thead>
7276
<tbody>
7377

7478
{#each $currentComponentDetails as attribute}
75-
<tr>
76-
<td>{attribute.key}</td>
77-
<td> <input class="text-right" placeholder={attribute.value} value="{attribute.value}"></td>
79+
<tr class="border">
80+
<td class="border bg-gray-300">{attribute.key}</td>
81+
<td class="border"> <input class="text-center" placeholder={attribute.value} value="{attribute.value}"></td>
7882
</tr>
7983
{/each}
8084

0 commit comments

Comments
 (0)
0