Skip to content
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

Fix scale for section buttons, to match with other player icons #361

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import '../styles/VideoJSSectionButtons.scss';

const vjsComponent = videojs.getComponent('Component');

const NextButtonIcon = ({ scale }) => {
const NextButtonIcon = () => {
return (
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" transform="rotate(0)"
style={{ fill: 'white', height: '1.25rem', width: '1.25rem', scale: scale }}>
style={{ fill: 'white', height: '1.25rem', width: '1.25rem' }}>
<g strokeWidth="0" strokeLinecap="round" strokeLinejoin="round">
<path d="M4 20L15.3333 12L4 4V20Z" fill="#ffffff"></path>
<path d="M20 4H17.3333V20H20V4Z" fill="#ffffff"></path>
Expand Down Expand Up @@ -92,7 +92,7 @@ function NextButton({
title={"Next"}
onClick={() => handleNextClick(false)}
onKeyDown={handleNextKeyDown}>
<NextButtonIcon scale="0.9" />
<NextButtonIcon />
</button>
</div >
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import '../styles/VideoJSSectionButtons.scss';

const vjsComponent = videojs.getComponent('Component');

const PreviousButtonIcon = ({ scale }) => {
const PreviousButtonIcon = () => {
return (
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
style={{ fill: 'white', height: '1.25rem', width: '1.25rem', scale: scale }}>
style={{ fill: 'white', height: '1.25rem', width: '1.25rem' }}>
<g strokeWidth="0" strokeLinecap="round" strokeLinejoin="round">
<path d="M20 4L8.66667 12L20 20V4Z" fill="#ffffff"></path>
<path d="M4 20H6.66667V4H4V20Z" fill="#ffffff"></path>
Expand Down Expand Up @@ -94,7 +94,7 @@ function PreviousButton({
title={canvasIndex == 0 ? "Replay" : "Previous"}
onClick={() => handlePreviousClick(false)}
onKeyDown={handlePreviousKeyDown}>
<PreviousButtonIcon scale="0.9" />
<PreviousButtonIcon />
</button>
</div>
);
Expand Down