MesterMan03 / Bedlessbot

This is an epic bot (by an epic person) that handles role applications and level system for Bedless Nation.
https://discord.gg/bedless-nation-691898152277508146
Apache License 2.0
2 stars 2 forks source link

Fixes in website #17

Closed jonahlikescookies closed 3 months ago

jonahlikescookies commented 3 months ago

Pull Request Template

Description

Addresses some requested changes in #16, the default profile picture scaling and separate scroll boxes for packs and comments. Edit: I forgot about this, I also shrank the modal. There are a couple of things I would like to work on before merging, including:

Type of Change

Please delete options that are not relevant.

Checklist

MesterMan03 commented 3 months ago

The new changes created a giant void in the bottom of the viewport which cuts off content, is this intentional? image

jonahlikescookies commented 3 months ago

Yes, it is intentional, it is there to avoid another scroll box being created for the body. If you want, you can increase the height of the sections in order to fill the void. However, this may not fix it for all devices, as the heading size is fixed.

MesterMan03 commented 3 months ago

I tried addressing some of the issues, now both comments and packs take up the entire space and they're still independently scrollable.

One issue is that if <main> doesn't take up only the rest of the available height inside of <body>, then a little content gets chopped off when you scroll to the bottom. I fixed this by setting the height to 90% (for header 10%), but this has some minor defects in special conditions.

Basically, this solution becomes perfect if <main> takes up the remaining height of <body>. Worst case scenario, we'll have to use some super ugly JavaScript code to manually calculate the width if it's not possible by CSS.

jonahlikescookies commented 3 months ago

I would try calculating the width with the CSS calc() method.

jonahlikescookies commented 3 months ago

@MesterMan03 I currently don’t have access to a computer, so I am unable to thoroughly test my changes. Can you make sure that the scaling works fine for different viewport sizes?

jonahlikescookies commented 3 months ago

I think we can add CSS for the pack selection for comments before merging, as it definitely looks different across browsers.

jonahlikescookies commented 3 months ago

If you don’t like how I styled the <select> elements, then feel free to make any changes. Otherwise, feel free to merge.

MesterMan03 commented 3 months ago

Alright cool, we're slowly getting closer to a public release. The biggest challenge will probably be the mobile layout, but we might get away with it since I presume most people will use computers to download Minecraft resource packs.