mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-13 06:25:55 +00:00
fix: better font select componennt fix: menubar being clickable on android feat: subtitle render height limit feat: higher memory limits for libass feat: better looking settings feat: hide settings unsupported by platform feat: better setting descriptions fix: miniplayer dragging on mobile
20 lines
475 B
Svelte
20 lines
475 B
Svelte
<script>
|
|
import { getContext } from 'svelte'
|
|
import { TABS } from './Tabs.svelte'
|
|
import { click } from '@/modules/click.js'
|
|
|
|
const tab = {}
|
|
const { registerTab, selectTab, selectedTab } = getContext(TABS)
|
|
|
|
registerTab(tab)
|
|
</script>
|
|
|
|
<div class={'pointer my-5 rounded ' + ($selectedTab === tab ? 'bg-dark-light font-weight-bold' : '')} use:click={() => selectTab(tab)}>
|
|
<slot />
|
|
</div>
|
|
|
|
<style>
|
|
div {
|
|
transition: background .2s ease-in-out;
|
|
}
|
|
</style>
|