jacekkow / mpk-ttss

Improved www.ttss.krakow.pl
BSD 3-Clause "New" or "Revised" License
82 stars 12 forks source link

Fix for Safari (hide button not visible) #30

Closed p0358 closed 4 years ago

p0358 commented 4 years ago

Apparently the hide button was not visible on Safari. After some research it seems that Safari hides position: fixed elements if parent has overflow hidden... I kept the button itself intact (to not risk that changes will render it positioned wrongly on some screens), and instead changed parent's overflow-y to visible and came up with these changes to keep everything working and looking the same (hopefully):

These changes fix the appearance of hide button on Safari, while keeping everything else looking the same way as before.

Should be tested on some mobile Android as well before merging.

Alive proof that it works now (the right empty margin is not there, GitHub did break the screenshot while uploading somehow...): obraz

jacekkow commented 4 years ago

@p0358: Would you like me trying this approach?

p0358 commented 4 years ago

@jacekkow Sorry for late reply. Yes, you can try your approach, I will be happy to test how it works

jacekkow commented 4 years ago

@p0358 Sorry, I have messed up this pull-request. Could you try safari-fix branch? (https://github.com/jacekkow/mpk-ttss/tree/safari-fix)

I had to create new PR, which is here: https://github.com/jacekkow/mpk-ttss/pull/32