-
Notifications
You must be signed in to change notification settings - Fork 17
fix(Fullscreen): fix overlay and root #2817
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
Conversation
| @@ -1,20 +1,22 @@ | |||
| .ydb-fullscreen { | |||
| --ydb-fullscreen-z-index: 1000; | |||
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.
| const fullscreenRoot = React.useMemo( | ||
| () => document.getElementById('fullscreen-root') ?? undefined, | ||
| [], | ||
| ); |
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.
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.
Pull Request Overview
This PR refactors the Fullscreen component and its dependencies to improve code organization and reliability. The changes convert default exports to named exports and fix potential issues with DOM element access.
Key changes:
- Convert default exports to named exports for Fullscreen and EnableFullscreenButton components
- Move fullscreen root element access inside the component with proper memoization
- Use CSS custom properties for z-index values instead of hardcoded numbers
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/Fullscreen/Fullscreen.tsx | Convert to named export, move DOM access inside component with memoization, add fullscreenRoot to effect dependencies |
| src/components/EnableFullscreenButton/EnableFullscreenButton.tsx | Convert default export to named export |
| src/components/Fullscreen/Fullscreen.scss | Replace hardcoded z-index values with CSS custom properties |
| src/containers/Tenant/TenantDrawerHealthcheck.tsx | Update import to use named export |
| src/containers/Tenant/Query/QueryResult/QueryResultViewer.tsx | Update imports to use named exports |
| src/containers/Tenant/Query/Preview/components/PreviewView.tsx | Update imports to use named exports |
| src/containers/Tenant/Healthcheck/Healthcheck.tsx | Update import to use named export |
| src/containers/Tenant/Diagnostics/TopicData/TopicData.tsx | Update imports to use named exports |
| const isFullscreen = useTypedSelector((state) => state.fullscreen); | ||
| const dispatch = useTypedDispatch(); | ||
|
|
||
| const fullscreenRoot = React.useMemo( |
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.
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.
Added ref and context



Stand: https://nda.ya.ru/t/rNCLFY_v7JT8iT
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ⏭️2
⏭️ Skipped Tests (2)
Bundle Size: ✅
Current: 85.39 MB | Main: 85.39 MB
Diff: +2.13 KB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information