Skip to content
Snippets Groups Projects
Verified Commit 6e16459c authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: Improved camera capture functionality and UI responsiveness

- camera-capture.mjs
  - Added a private full-screen symbol to manage full-screen states and errors more effectively.
  - Streamlined the camera initialization process by ensuring the stream is stopped before fetching devices. This prevents excess resource usage.
  - Updated the camera selection dropdown to only show if there are available devices and made styling adjustments for better presentation.

- camera-capture.pcss
  - Adjusted the positioning of the full-screen element to sit more comfortably in the UI by changing top spacing from 2rem to 1rem for better alignment.

- camera-capture.mjs (stylesheet)
  - Reformatted import statements and simplified rule insertions for clarity and maintainability, promoting cleaner code practices.

These changes enhance user experience by preventing unnecessary resource use, improving UI layout, and ensuring that errors are handled gracefully.
parent 8f5342f3
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment