Add picker to sticky columns
This commit is contained in:
parent
06549149b6
commit
5b42aff1f7
|
@ -57,6 +57,7 @@
|
|||
class:fullWidth
|
||||
class="spectrum-ActionButton spectrum-ActionButton--size{size}"
|
||||
class:active
|
||||
class:disabled
|
||||
{disabled}
|
||||
on:longPress
|
||||
on:click|preventDefault
|
||||
|
@ -122,6 +123,9 @@
|
|||
.is-selected:not(.emphasized) .spectrum-Icon {
|
||||
color: var(--spectrum-global-color-gray-900);
|
||||
}
|
||||
.is-selected.disabled .spectrum-Icon {
|
||||
color: var(--spectrum-global-color-gray-500);
|
||||
}
|
||||
.tooltip {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
|
|
|
@ -64,7 +64,19 @@
|
|||
<Icon size="S" name={getColumnIcon($stickyColumn)} />
|
||||
{$stickyColumn.label}
|
||||
</div>
|
||||
<Toggle disabled size="S" value={true} />
|
||||
|
||||
<div class="permissionPicker">
|
||||
{#each options as option}
|
||||
<ActionButton
|
||||
disabled
|
||||
size="S"
|
||||
icon={option.icon}
|
||||
quiet
|
||||
selected={option.value === PERMISSION_OPTIONS.WRITABLE}
|
||||
noPadding
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
{#each $columns as column}
|
||||
<div class="column">
|
||||
|
@ -99,6 +111,7 @@
|
|||
display: grid;
|
||||
align-items: center;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 8px;
|
||||
}
|
||||
.columns :global(.spectrum-Switch) {
|
||||
margin-right: 0;
|
||||
|
|
Loading…
Reference in New Issue