fix(SampleList): render TypographyMenu every time but hide it when needed
This commit is contained in:
1 parent
6945169279
commit
61c67acfb8
1 file changed
+4
-3
@@ -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