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