Page MenuHomePhabricator

D10082.id24243.diff
No OneTemporary

D10082.id24243.diff

diff --git a/src/aphront/response/Aphront404Response.php b/src/aphront/response/Aphront404Response.php
--- a/src/aphront/response/Aphront404Response.php
+++ b/src/aphront/response/Aphront404Response.php
@@ -7,15 +7,16 @@
}
public function buildResponseString() {
- $failure = new AphrontRequestFailureView();
- $failure->setHeader('404 Not Found');
- $failure->appendChild(phutil_tag('p', array(), pht(
+ $failure = id(new AphrontRequestFailureView())
+ ->setHeader(pht('404 Not Found'))
+ ->appendChild(phutil_tag('p', array(), pht(
'The page you requested was not found.')));
- $view = new PhabricatorStandardPageView();
- $view->setTitle('404 Not Found');
- $view->setRequest($this->getRequest());
- $view->appendChild($failure);
+ $view = id(new PhabricatorStandardPageView())
+ ->setTitle('404 Not Found')
+ ->setRequest($this->getRequest())
+ ->setDeviceReady(true)
+ ->appendChild($failure);
return $view->render();
}
diff --git a/webroot/rsrc/css/aphront/request-failure-view.css b/webroot/rsrc/css/aphront/request-failure-view.css
--- a/webroot/rsrc/css/aphront/request-failure-view.css
+++ b/webroot/rsrc/css/aphront/request-failure-view.css
@@ -3,11 +3,15 @@
*/
.aphront-request-failure-view {
- margin: 2em auto;
+ margin: 16px auto;
background: #eff2f7;
width: 600px;
}
+.device .aphront-request-failure-view {
+ width: 90%;
+}
+
.aphront-request-failure-view .aphront-request-failure-head {
padding: 1em 2em;
border-bottom: 1px solid #afb2b7;

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 1:59 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7695236
Default Alt Text
D10082.id24243.diff (1 KB)

Event Timeline