Remove z-index

This commit is contained in:
space-nuko
2023-05-10 11:25:49 -05:00
parent 789d8a0137
commit 7143fec258
5 changed files with 13 additions and 8 deletions

View File

@@ -91,10 +91,10 @@
{/each} {/each}
</div> </div>
{#if isHidden(container) && edit} {#if isHidden(container) && edit}
<div class="handle handle-hidden" class:hidden={!edit} style="z-index: {zIndex+100}"/> <div class="handle handle-hidden" class:hidden={!edit} />
{/if} {/if}
{#if showHandles} {#if showHandles}
<div class="handle handle-container" style="z-index: {zIndex+100}" data-drag-item-id={container.id} on:mousedown={startDrag} on:touchstart={startDrag} on:mouseup={stopDrag} on:touchend={stopDrag}/> <div class="handle handle-container" data-drag-item-id={container.id} on:mousedown={startDrag} on:touchstart={startDrag} on:mouseup={stopDrag} on:touchend={stopDrag}/>
{/if} {/if}
</Accordion> </Accordion>
</Block> </Block>

View File

@@ -91,10 +91,10 @@
{/each} {/each}
</div> </div>
{#if isHidden(container) && edit} {#if isHidden(container) && edit}
<div class="handle handle-hidden" class:hidden={!edit} style="z-index: {zIndex+100}"/> <div class="handle handle-hidden" class:hidden={!edit} />
{/if} {/if}
{#if showHandles} {#if showHandles}
<div class="handle handle-container" style="z-index: {zIndex+100}" data-drag-item-id={container.id} on:mousedown={startDrag} on:touchstart={startDrag} on:mouseup={stopDrag} on:touchend={stopDrag}/> <div class="handle handle-container" data-drag-item-id={container.id} on:mousedown={startDrag} on:touchstart={startDrag} on:mouseup={stopDrag} on:touchend={stopDrag}/>
{/if} {/if}
</Block> </Block>
</div> </div>

View File

@@ -106,10 +106,10 @@
{/each} {/each}
</div> </div>
{#if isHidden(container) && edit} {#if isHidden(container) && edit}
<div class="handle handle-hidden" class:hidden={!edit} style="z-index: {zIndex+100}"/> <div class="handle handle-hidden" class:hidden={!edit} />
{/if} {/if}
{#if showHandles} {#if showHandles}
<div class="handle handle-container" style="z-index: {zIndex+100}" data-drag-item-id={container.id} on:mousedown={startDrag} on:touchstart={startDrag} on:mouseup={stopDrag} on:touchend={stopDrag}/> <div class="handle handle-container" data-drag-item-id={container.id} on:mousedown={startDrag} on:touchstart={startDrag} on:mouseup={stopDrag} on:touchend={stopDrag}/>
{/if} {/if}
</Block> </Block>
{:else} {:else}

View File

@@ -78,10 +78,10 @@
<svelte:component this={widget.node.svelteComponentType} {widget} {isMobile} /> <svelte:component this={widget.node.svelteComponentType} {widget} {isMobile} />
</div> </div>
{#if hidden && edit} {#if hidden && edit}
<div class="handle handle-hidden" class:hidden={!edit} style="z-index: {zIndex+100}"/> <div class="handle handle-hidden" class:hidden={!edit} />
{/if} {/if}
{#if showHandles} {#if showHandles}
<div class="handle handle-widget" style="z-index: {zIndex+100}" data-drag-item-id={widget.id} on:mousedown={startDrag} on:touchstart={startDrag} on:mouseup={stopDrag} on:touchend={stopDrag}/> <div class="handle handle-widget" data-drag-item-id={widget.id} on:mousedown={startDrag} on:touchstart={startDrag} on:mouseup={stopDrag} on:touchend={stopDrag}/>
{/if} {/if}
{/key} {/key}
{/key} {/key}

View File

@@ -24,6 +24,11 @@
// Disable pull to refresh // Disable pull to refresh
overscroll-behavior-y: contain; overscroll-behavior-y: contain;
// framework7's css conflicts with gradio's
:global(.block) {
z-index: unset; // f7 sets it to 1
}
} }
// TODO generalize this to all properties! // TODO generalize this to all properties!