fix(SampleList): render TypographyMenu every time but hide it when needed
This commit is contained in:
@@ -101,7 +101,8 @@ function checkPosition() {
|
|||||||
{/snippet}
|
{/snippet}
|
||||||
</FontVirtualList>
|
</FontVirtualList>
|
||||||
|
|
||||||
{#if isAboveMiddle}
|
<TypographyMenu
|
||||||
<TypographyMenu class="fixed bottom-4 sm:bottom-5 right-4 sm:left-1/2 sm:right-[unset] sm:-translate-x-1/2" />
|
class="fixed bottom-4 sm:bottom-5 right-4 sm:left-1/2 sm:right-[unset] sm:-translate-x-1/2"
|
||||||
{/if}
|
hidden={!isAboveMiddle}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user