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

PandoraControls Width #698

Merged
merged 1 commit into from
Jun 6, 2024
Merged

PandoraControls Width #698

merged 1 commit into from
Jun 6, 2024

Conversation

SteveMicroNova
Copy link
Contributor

What does this change intend to accomplish?

I pushed an update without testing for UX design on multiple platforms, causing the new Pandora Controls to flow off the screen on mobile
This fixes that by making the buttons smaller

Copy link
Contributor

@rtertiaer rtertiaer left a comment

Choose a reason for hiding this comment

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

can you update the changelog pls?

Copy link
Contributor

@rtertiaer rtertiaer left a comment

Choose a reason for hiding this comment

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

also, per the PR checklist that you removed, please affirm that you have tested these changes and that they work, across multiple platforms (ios, android, firefox, chrome at a minimum.)

@SteveMicroNova
Copy link
Contributor Author

Chrome and Firefox are good, as well as my phone (mobile safari) and all of the default emulatable screen sizes for mobile devices in Chrome

Comment on lines +75 to +87
{/* There are many sub-divs classed player-inner here because formatting was strange otherwise */}
<div className="player-inner">
<img src={img_url} className="player-album-art" />
</div>
<div className="player-inner">
<SongInfo
sourceId={selectedSourceId}
artistClassName="player-info-title"
albumClassName="player-info-album"
trackClassName="player-info-track"
/>
</div>
<div className="player-inner">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added more divs so that I could divorce metadata length, album art, and controls from eachother because otherwise the widest one screwed at least one of the others up (generally the controls screwing the metadata up and pushing it leftwards for whatever reason)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Un-divided album art from metadata, kept separation between controls and the others

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Re-divided those because album art doesn't scale down on sufficiently tiny screens, but still kept text in line with its leftmost side

@SteveMicroNova
Copy link
Contributor Author

Needs more testing with long metadata due to the div change before I'm willing to merge this
Will do that tomorrow

Copy link
Contributor

@rtertiaer rtertiaer left a comment

Choose a reason for hiding this comment

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

can you squash this PR pls?

@SteveMicroNova SteveMicroNova force-pushed the PandoraControlWidth branch 2 times, most recently from 3f14ae9 to 126622f Compare May 10, 2024 15:22
<SongInfo
sourceId={selectedSourceId}
artistClassName="player-info-title"
albumClassName="player-info-album"
trackClassName="player-info-track"
/>
</div>
<div className="player-inner">
Copy link
Contributor

Choose a reason for hiding this comment

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

you open a div here but don't close it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

<div className="player-inner">
                <img src={img_url} className="player-album-art" />
            </div>
            <div className="player-inner">
                <SongInfo
                    sourceId={selectedSourceId}
                    artistClassName="player-info-title"
                    albumClassName="player-info-album"
                    trackClassName="player-info-track"
                />
                </div>
                <div className="player-inner">
                <MediaControl selectedSource={selectedSourceId} />
            </div>

I close a preexisting div and open a new one, inheriting the original ones closing tag

Copy link
Contributor

Choose a reason for hiding this comment

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

can you fix the indentation then?

Comment on lines 39 to 40
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

is this correct? if it isn't the indentation needs to be corrected

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only problem was a tabindex, fixed in recent commit

Divide MediaControl into its own div so the automatic fit-content width of the shared div stops forcing metadata off the page

Update CHANGELOG

Add more divs
Add responsive CSS

Readjust scaling of player page elements

Improve scalability

Update CHANGELOG

Fix for horizontal scroll bar

Fix tab indent on div open and close

Fix tabindex in MediaControl.scss
@SteveMicroNova SteveMicroNova merged commit 0d5e45a into main Jun 6, 2024
3 checks passed
@SteveMicroNova SteveMicroNova deleted the PandoraControlWidth branch June 6, 2024 19:06
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.

Pandora controls go off screen on mobile
2 participants