-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨(frontend) add fullscreen mode on desktop #314
base: main
Are you sure you want to change the base?
Conversation
Enregistrement.de.l.ecran.2025-01-22.a.11.07.06_2_3.mov |
{isFullscreenAvailable && ( | ||
<MenuItem | ||
onAction={() => toggleFullScreen()} | ||
className={menuRecipe({ icon: true, variant: 'dark' }).item} | ||
> | ||
{isCurrentlyFullscreen ? ( | ||
<> | ||
<RiFullscreenExitLine size={20} /> | ||
{t('fullscreen.exit')} | ||
</> | ||
) : ( | ||
<> | ||
<RiFullscreenLine size={20} /> | ||
{t('fullscreen.enter')} | ||
</> | ||
)} | ||
</MenuItem> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT about nesting this in a sub component ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer having all the MenuItem at the same level, but if you feel it's necessary can totally do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I try something
a5e46d8
to
0034999
Compare
Expected behavior Enregistrement.de.l.ecran.2025-01-22.a.13.52.27.mov |
Added an option allowing users to trigger the fullscreen mode while on desktop. Heavily inspired by the PR #279 from @sylvinus. Yet, this option allow user to enable/disable the fullscreen mode on the whole ui, in the next iteration I'll add the same feature but for a given video track. This is on purpose that the feature is available on desktop only. The hook code has been partially written by Claude and inspired by @sylvinus first suggestion.
0034999
to
b3138b4
Compare
Each menu item is now a standalone component, improving: - Code organization & reusability - Maintainability by reducing OptionsMenuItems complexity This breaks down large components.
Added an option allowing users to trigger the fullscreen mode while on desktop. Heavily inspired by the PR #279 from @sylvinus.
Yet, this option allow user to enable/disable the fullscreen mode on the whole ui, in the next iteration I'll add the same feature but for a given video track.
This is on purpose that the feature is available on desktop only. The hook code has been partially written by Claude and inspired by @sylvinus first suggestion.