-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Improving the login layout when IE is in intranet mode #15083
Conversation
@rhamilto if media queries are not supported that tells me even more of the console is broken than we realized, if you shrink things down to small desktop is it a mess? |
cc @spadgett |
@rhamilto Does adding <meta http-equiv="X-UA-Compatible" content="IE=edge"> to the document head help? |
ahhhh right that is how we forced the document mode
…On Thu, Jul 6, 2017 at 1:24 PM, Sam Padgett ***@***.***> wrote:
@rhamilto <https://github.com/rhamilto> Does adding
<meta http-equiv="X-UA-Compatible" content="IE=edge">
to the document head help?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#15083 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZk7R9tWKBUhfZU1Tho02lyeb7Jax5fks5sLRhKgaJpZM4OP6ov>
.
|
@spadgett, yep! That's the missing key. The login page does not have the meta element, but the rest of the console does. Will update the PR. Is there a way for me to test the PR itself? I've been working off local files... |
You can try
|
@rhamilto so we actually have several other templates for the oauth server, and I guarantee they probably are ALL missing this line |
@liggitt FYI since this will be touching all of the oauth server's HTML pages (will wait for 3.7) |
pkg/auth/server/login/templates.go
Outdated
@@ -83,6 +83,7 @@ const defaultLoginTemplateString = `<!DOCTYPE html> | |||
<head> | |||
<title>Login - OpenShift Origin</title> | |||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the first meta tag. Best to put it immediately after head.
I think it's I've searched the repo for the following and updated accordingly: contain "data:image"
contain "@media"
I think we should be good. |
pkg/auth/server/grant/templates.go
Outdated
<title> | ||
Authorize | ||
Authorize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably want to be careful about these whitespace changes, it might be affecting the final output
[test] |
Evaluated for origin test up to 8d3eb02 |
I think we might get a clean merge of this change with the existing OCP template overrides, so we may not need a separate PR for OCP |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2998/) (Base Commit: 289cf8f) (PR Branch Commit: 8d3eb02) |
LGTM |
Low risk, big win [severity:blocker] [merge] |
continuous-integration/openshift-jenkins/merge Waiting: You are in the build queue at position: 3 |
Evaluated for origin merge up to 8d3eb02 |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1298750