brianjp93 / lolsite

The source code for hardstuck.club -- a league of legends match history/stats site.
https://hardstuck.club
11 stars 4 forks source link

frontend update Summoner.tsx #29

Closed JacobWillkomm closed 2 years ago

JacobWillkomm commented 2 years ago

changes to Summoner.tsx, RecentlyPlayedWith.jsx, MatchFilterForm.tsx and index.css

On Summoner.tsx

On RecentlyPlayedWith.jsx

On MatchFilterForm.tsx

On index.css

Notes: Would be nice to get the MatchFilterForm to align with the bottom of the container instead of the top. We should consider including the MatchFilterForm in the div with the MatchCards, and the RecentlyPlayedWith in the div with OftenPlaysWith. Ideally, we could just reorder the elements on the smaller screen size rather than collapse them.

Named this branch a WIP so that I can address any feedback you have regarding layout.

new_summoner_layout old_summoner_layout
brianjp93 commented 2 years ago

Nice! You mention this in your PR a little bit. Since we're changing this up, I think it is a good idea to get the match list to align with the bottom of the matchfilterform like you said. Maybe we can create two columns and just hide the second column with the "players in these games" and "often plays with" components.

JacobWillkomm commented 2 years ago

If you want to try to do the change to create two columns and align the match list with the matchfilterform then I can wait for you to commit that as well.

I'll take a look and get the matchfilterform aligned, and add the other columns. Just to make sure I understand, do you mean that we should add another column that contains the "players in these games" and "often plays with" components, below the current layout, hidden on a large screen, and visible when on a small screen? (so that those components are always visible somewhere)

brianjp93 commented 2 years ago

No, I don't think it's needs to be shown at all if the screen is too small. I just mean that it would be nice to create two columns just so the match list can be bumped up a little bit image

JacobWillkomm commented 2 years ago

Indentation & trailing whitespace fixed. 'react/.yarn/sdks' updated per https://yarnpkg.com/getting-started/editor-sdks#editor-setup This only seems to fix the errors if you open the react folder specifically with vscode.

JacobWillkomm commented 2 years ago

Just wanted to touch base on the PR. No worries if you haven't had a chance to review yet :).

brianjp93 commented 2 years ago

looks good!