feat: add video loop playback setting
Add a toggle in General Settings to enable/disable video loop playback, following the same pattern as the existing autoplay setting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ae8a534103
commit
481603d0e8
23 changed files with 90 additions and 19 deletions
|
|
@ -29,6 +29,8 @@ const GeneralSettingsPage = forwardRef(({ index }: { index?: number }, ref) => {
|
|||
const {
|
||||
autoplay,
|
||||
setAutoplay,
|
||||
videoLoop,
|
||||
setVideoLoop,
|
||||
nsfwDisplayPolicy,
|
||||
setNsfwDisplayPolicy,
|
||||
hideContentMentioningMutedUsers,
|
||||
|
|
@ -121,6 +123,15 @@ const GeneralSettingsPage = forwardRef(({ index }: { index?: number }, ref) => {
|
|||
</Label>
|
||||
<Switch id="autoplay" checked={autoplay} onCheckedChange={setAutoplay} />
|
||||
</SettingItem>
|
||||
<SettingItem>
|
||||
<Label htmlFor="video-loop" className="text-base font-normal">
|
||||
<div>{t('Video loop')}</div>
|
||||
<div className="text-muted-foreground">
|
||||
{t('Automatically replay videos when they end')}
|
||||
</div>
|
||||
</Label>
|
||||
<Switch id="video-loop" checked={videoLoop} onCheckedChange={setVideoLoop} />
|
||||
</SettingItem>
|
||||
<SettingItem>
|
||||
<Label htmlFor="hide-content-mentioning-muted-users" className="text-base font-normal">
|
||||
{t('Hide content mentioning muted users')}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue