Skip to content

feat: add HTML vertical orientation to time and volume#32

Merged
luwes merged 2 commits intomainfrom
orientation-html
Oct 1, 2025
Merged

feat: add HTML vertical orientation to time and volume#32
luwes merged 2 commits intomainfrom
orientation-html

Conversation

@luwes
Copy link
Copy Markdown
Collaborator

@luwes luwes commented Oct 1, 2025

Adds the vertical orientation to the HTML ranges

@luwes luwes requested a review from Copilot October 1, 2025 19:54
@luwes luwes self-assigned this Oct 1, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 adds vertical orientation support to HTML media time and volume range components. The implementation allows range sliders to be displayed vertically instead of the default horizontal orientation.

  • Adds CSS styles for both horizontal and vertical orientations with appropriate positioning and dimensions
  • Implements orientation attribute handling and state management in component classes
  • Updates component positioning logic to support vertical layout with proper thumb and progress positioning

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
media-skin-default.ts Adds CSS styles for horizontal/vertical orientations and sets volume range to vertical by default
media-volume-range.ts Implements orientation attribute support with dynamic styling and positioning logic
media-time-range.ts Implements orientation attribute support with dynamic styling and positioning logic

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

media-time-range-root {
display: flex;
align-items: center;
justify-content: center;
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding justify-content: center to the base styles may affect existing horizontal layouts. Consider moving this property to the orientation-specific selectors to avoid unintended changes to the default behavior.

Copilot uses AI. Check for mistakes.
Comment thread packages/html/html/src/components/media-volume-range.ts Outdated
Comment thread packages/html/html/src/components/media-volume-range.ts Outdated
Comment thread packages/html/html/src/components/media-volume-range.ts Outdated
Comment thread packages/html/html/src/components/media-time-range.ts Outdated
Comment thread packages/html/html/src/components/media-time-range.ts Outdated
Comment thread packages/html/html/src/components/media-time-range.ts Outdated
Comment thread packages/html/html/src/components/media-time-range.ts Outdated
Comment thread packages/html/html/src/components/media-time-range.ts Outdated
@luwes luwes changed the title feat: add vertical orientation to time and volume feat: add HTML vertical orientation to time and volume Oct 1, 2025
@luwes luwes merged commit 7b79854 into main Oct 1, 2025
@luwes luwes deleted the orientation-html branch October 1, 2025 20:02
@github-actions github-actions bot mentioned this pull request Oct 24, 2025
@github-actions github-actions bot mentioned this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants