migu/common/components/TabLabel.svelte
ThaUnknown 88ab29e6a1 fix: torrent port on android
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
2023-11-21 01:17:09 +01:00

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>