-
Notifications
You must be signed in to change notification settings - Fork 152
Restructure looks of compare.html site #782
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>rustc performance data</title> | ||
<link rel="stylesheet" type="text/css" href="perf.css"> | ||
<link rel="alternate icon" type="image/png" href="/favicon-32x32.png"> | ||
|
@@ -18,7 +19,7 @@ | |
} | ||
</style> | ||
</head> | ||
<body class="container"> | ||
<body class="container" style="max-width:800px"> | ||
<div>> <a href="index.html">graphs</a>, <a href="compare.html">compare</a>, | ||
<a href="dashboard.html">dashboard</a>, <a href="bootstrap.html">bootstrap</a>, | ||
<a href="status.html">status</a>.</div> | ||
|
@@ -46,18 +47,20 @@ <h3>Cache states</h3> | |
</ul> | ||
</div> | ||
<div id="content" style="display: none"></div> | ||
<div id="settings"> | ||
<div id="commits" class="settings" style="text-align:left;"> | ||
<h3>Commits</h3> | ||
Commit/Date A: <input width="100em" placeholder="YYYY-MM-DD or SHA" id="start-bound" /><br> | ||
Commit/Date B: <input width="100em" placeholder="YYYY-MM-DD or SHA" id="end-bound" /><br> | ||
<select id='stats' name="stat"> | ||
</select> | ||
<div class="submit"> | ||
<a href="#" onClick="submit_settings(); return false;">Submit</a> | ||
</div> | ||
</div> | ||
</div> | ||
<form id="settings" action=""> | ||
<fieldset id="commits"> | ||
<legend>Commits</legend> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe you could adjust the legend to eg "Select comparision" |
||
<label for="start-bound">Commit/Date A:</label> | ||
<input width="100em" placeholder="YYYY-MM-DD or SHA" id="start-bound" /><br> | ||
<label for="end-bound">Commit/Date B:</label> | ||
<input width="100em" placeholder="YYYY-MM-DD or SHA" id="end-bound" /><br> | ||
</fieldset> | ||
<label for="stats">Choose a comparison method:</label> | ||
<select id='stats' name="stat"> | ||
</select><br> | ||
<input type="submit" value="Submit" onclick="submit_settings(); return false;"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd include the buttons in the fieldset so the box is drawn around all of it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't have strong preference. To be honest, I'm not a web dev. This PR is result of googling around |
||
</form> | ||
<br> | ||
<div id="as-of"></div> | ||
<a href="https://github.com/rust-lang-nursery/rustc-perf"> | ||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"> | ||
|
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.
It always worked fairly okay for me already on mobile, what sort of improvement does this bring?
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 is current page on mobile, we have to zoon in to view the page.
Old change
With this meta tag, we don't. MDN wrote something about this: https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Responsive_Design#The_viewport_meta_tag