Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-27168] Set -webkit-fill-available when on iOS Safari and 100vh otherwise #6010

Merged
merged 3 commits into from
Jul 30, 2020

Conversation

fmunshi
Copy link
Contributor

@fmunshi fmunshi commented Jul 29, 2020

Summary

  • Since webkit-touch-callout is only supported on iOS Safari (see https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-touch-callout) this will make the original fix of height: -webkit-fill-available; apply when its needed and leave desktop chrome / other browsers unchanged.

  • I dont have an iOS device to test this on so I havent actually confirmed that this works on iOS safari but I can confirm that it doesnt break anything on chrome / any other desktop browsers

  • Milestone labeled as 5.26 but will also cherry-pick this to 5.25 when tested

Ticket Link

Also set first div child of admin console as height 100%
@fmunshi fmunshi added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Jul 29, 2020
@fmunshi fmunshi added this to the v5.26 milestone Jul 29, 2020
@amyblais amyblais added the CherryPick/Approved Meant for the quality or patch release tracked in the milestone label Jul 29, 2020
@amyblais
Copy link
Member

@asaadmahmood @calebroseland Kind note that this PR is for v5.25 dot release,

@amyblais amyblais removed the 2: Dev Review Requires review by a core commiter label Jul 30, 2020
@fmunshi fmunshi requested a review from lindy65 July 30, 2020 15:05
@fmunshi
Copy link
Contributor Author

fmunshi commented Jul 30, 2020

tagging you @lindy65 since you reviewed the original PR here #5659

So I assume you have an iPad available to test with

@lindy65 lindy65 added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Jul 30, 2020
Copy link
Contributor

@lindy65 lindy65 left a comment

Choose a reason for hiding this comment

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

Thanks @fmunshi - I tested on Win10 Chrome versions 84.0.4147.89 and 84.0.4147.105 as well as iPad and did not find any issues. I am able to scroll content in the system console. The original bug in #5659 is also (still) fixed.

Jelena helped test the following:

Chrome Version 83.0.4103.116 macOS
Safari Version 13.1.1 macOS
Sys Console main view scrolls on both Chrome and Safari

@lindy65 lindy65 added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Jul 30, 2020
@mm-cloud-bot
Copy link

Test server destroyed

@fmunshi fmunshi merged commit 630ce20 into master Jul 30, 2020
@fmunshi fmunshi deleted the MM-27168-admin-console-100% branch July 30, 2020 19:31
mattermost-build pushed a commit to mattermost-build/mattermost-webapp that referenced this pull request Jul 30, 2020
…herwise (mattermost#6010)

* Set -webkit-fill-available when on iOS Safari
Also set first div child of admin console as height 100%

* Unneeded ampersand

* This 100% does nothing

(cherry picked from commit 630ce20)
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Jul 30, 2020
fmunshi added a commit that referenced this pull request Jul 30, 2020
…herwise (#6010)

* Set -webkit-fill-available when on iOS Safari
Also set first div child of admin console as height 100%

* Unneeded ampersand

* This 100% does nothing
fmunshi added a commit that referenced this pull request Jul 30, 2020
…herwise (#6010) (#6022)

* Set -webkit-fill-available when on iOS Safari
Also set first div child of admin console as height 100%

* Unneeded ampersand

* This 100% does nothing

(cherry picked from commit 630ce20)

Co-authored-by: Farhan Munshi <[email protected]>
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Jul 30, 2020
fmunshi added a commit that referenced this pull request Jul 30, 2020
…lable (#6023)

* [MM-27168]  Set -webkit-fill-available when on iOS Safari and 100vh otherwise (#6010)

* Set -webkit-fill-available when on iOS Safari
Also set first div child of admin console as height 100%

* Unneeded ampersand

* This 100% does nothing

* Remove webkit-fill when not ios
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Done Required changelog entry has been written CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation
Projects
None yet
7 participants