Skip to content

Commit

Permalink
refactor(web): set fixed widths for columns
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Mar 25, 2023
1 parent 8743dd1 commit 6ffef71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/pages/resource/components/QueryTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
<tr {...rowAttrs}>
{#each headerRow.cells as cell (cell.id)}
<Subscribe attrs={cell.attrs()} let:attrs props={cell.props()} let:props>
<th {...attrs} on:click={props.sort.toggle} class="p-1 border-b-[1px] border-dark-400">
<th
{...attrs}
on:click={props.sort.toggle}
class={`p-1 border-b-[1px] border-dark-400 ${cell.id === 'executionTime' ? 'w-1/4' : 'w-3/4'}`}
>
<div class="flex justify-center items-center gap-2 select-none cursor-pointer">
<Render of={cell.render()} />
{#if props.sort.order === 'asc'}
Expand Down

0 comments on commit 6ffef71

Please sign in to comment.