mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-19 16:22:04 +00:00
isUnderPowered condition added
This commit is contained in:
parent
34cfa65464
commit
a83c1057ba
2 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import ChevronRight from 'lucide-svelte/icons/chevron-right'
|
||||
import Play from 'lucide-svelte/icons/play'
|
||||
|
||||
import { settings } from '../modules/settings'
|
||||
import { settings, SUPPORTS } from '../modules/settings'
|
||||
|
||||
import Pagination from './Pagination.svelte'
|
||||
import { Button } from './ui/button'
|
||||
|
|
@ -65,10 +65,10 @@
|
|||
)}>
|
||||
{#if image}
|
||||
<div class='w-52 shrink-0 relative'>
|
||||
{#if shouldHideSpoiler}
|
||||
{#if shouldHideSpoiler && SUPPORTS.isUnderPowered}
|
||||
<div class='h-full w-full aspect-video bg-gradient-to-br from-black via-neutral-900 to-neutral-800' />
|
||||
{:else}
|
||||
<Load src={image} class={cn('object-cover h-full w-full', watched && 'opacity-20')} />
|
||||
<Load src={image} class={cn('object-cover h-full w-full', watched && 'opacity-20', shouldHideSpoiler && 'blur-md')} />
|
||||
{/if}
|
||||
{#if length ?? media.duration}
|
||||
<div class='absolute bottom-1 left-1 bg-neutral-900/80 text-secondary-foreground text-[9.6px] px-1 py-0.5 rounded'>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
{:else}
|
||||
<div class='font-weight-bold text-xl font-bold'>UI Settings</div>
|
||||
{/if}
|
||||
<SettingCard title='Hide Spoiler' description="Hide episodes' thumbnail image, title and summary." let:id>
|
||||
<SettingCard title='Hide Spoilers' description='Hide potential spoilers such as thumbnail image, title and summary.' let:id>
|
||||
<Switch bind:checked={$settings.hideSpoiler} {id} />
|
||||
</SettingCard>
|
||||
<SettingCard title='UI Scale' description='Change the zoom level of the interface.' let:id>
|
||||
|
|
|
|||
Loading…
Reference in a new issue