mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
Minor, touch up Exception rendering
Summary: Cleans up spacing, hides footer if nothing present, uses common colors. Test Plan: Write some typical for a designer code. {F309840} Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11824
This commit is contained in:
parent
4c2e36f561
commit
08e67e0db7
4 changed files with 29 additions and 35 deletions
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
return array(
|
return array(
|
||||||
'names' => array(
|
'names' => array(
|
||||||
'core.pkg.css' => '8edbf4c0',
|
'core.pkg.css' => '048d109b',
|
||||||
'core.pkg.js' => '23d653bb',
|
'core.pkg.js' => '23d653bb',
|
||||||
'darkconsole.pkg.js' => '8ab24e01',
|
'darkconsole.pkg.js' => '8ab24e01',
|
||||||
'differential.pkg.css' => '380f07e5',
|
'differential.pkg.css' => '380f07e5',
|
||||||
|
@ -19,7 +19,7 @@ return array(
|
||||||
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
|
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
|
||||||
'rsrc/css/aphront/context-bar.css' => '1c3b0529',
|
'rsrc/css/aphront/context-bar.css' => '1c3b0529',
|
||||||
'rsrc/css/aphront/dark-console.css' => '6378ef3d',
|
'rsrc/css/aphront/dark-console.css' => '6378ef3d',
|
||||||
'rsrc/css/aphront/dialog-view.css' => '52dcd4c6',
|
'rsrc/css/aphront/dialog-view.css' => 'd2e76b88',
|
||||||
'rsrc/css/aphront/lightbox-attachment.css' => '7acac05d',
|
'rsrc/css/aphront/lightbox-attachment.css' => '7acac05d',
|
||||||
'rsrc/css/aphront/list-filter-view.css' => '2ae43867',
|
'rsrc/css/aphront/list-filter-view.css' => '2ae43867',
|
||||||
'rsrc/css/aphront/multi-column.css' => '41a848c0',
|
'rsrc/css/aphront/multi-column.css' => '41a848c0',
|
||||||
|
@ -501,7 +501,7 @@ return array(
|
||||||
'aphront-bars' => '231ac33c',
|
'aphront-bars' => '231ac33c',
|
||||||
'aphront-contextbar-view-css' => '1c3b0529',
|
'aphront-contextbar-view-css' => '1c3b0529',
|
||||||
'aphront-dark-console-css' => '6378ef3d',
|
'aphront-dark-console-css' => '6378ef3d',
|
||||||
'aphront-dialog-view-css' => '52dcd4c6',
|
'aphront-dialog-view-css' => 'd2e76b88',
|
||||||
'aphront-list-filter-view-css' => '2ae43867',
|
'aphront-list-filter-view-css' => '2ae43867',
|
||||||
'aphront-multi-column-view-css' => '41a848c0',
|
'aphront-multi-column-view-css' => '41a848c0',
|
||||||
'aphront-pager-view-css' => '2e3539af',
|
'aphront-pager-view-css' => '2e3539af',
|
||||||
|
|
|
@ -311,6 +311,19 @@ final class AphrontDialogView extends AphrontView {
|
||||||
$this->footers);
|
$this->footers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$tail = null;
|
||||||
|
if ($buttons || $footer) {
|
||||||
|
$tail = phutil_tag(
|
||||||
|
'div',
|
||||||
|
array(
|
||||||
|
'class' => 'aphront-dialog-tail grouped',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
$buttons,
|
||||||
|
$footer,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
$content = array(
|
$content = array(
|
||||||
phutil_tag(
|
phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
|
@ -323,15 +336,7 @@ final class AphrontDialogView extends AphrontView {
|
||||||
'class' => 'aphront-dialog-body grouped',
|
'class' => 'aphront-dialog-body grouped',
|
||||||
),
|
),
|
||||||
$children),
|
$children),
|
||||||
phutil_tag(
|
$tail,
|
||||||
'div',
|
|
||||||
array(
|
|
||||||
'class' => 'aphront-dialog-tail grouped',
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
$buttons,
|
|
||||||
$footer,
|
|
||||||
)),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($this->renderAsForm) {
|
if ($this->renderAsForm) {
|
||||||
|
|
|
@ -92,10 +92,10 @@ final class AphrontStackTraceView extends AphrontView {
|
||||||
$table = new AphrontTableView($rows);
|
$table = new AphrontTableView($rows);
|
||||||
$table->setHeaders(
|
$table->setHeaders(
|
||||||
array(
|
array(
|
||||||
'Depth',
|
pht('Depth'),
|
||||||
'Library',
|
pht('Library'),
|
||||||
'File',
|
pht('File'),
|
||||||
'Where',
|
pht('Where'),
|
||||||
));
|
));
|
||||||
$table->setColumnClasses(
|
$table->setColumnClasses(
|
||||||
array(
|
array(
|
||||||
|
@ -107,14 +107,10 @@ final class AphrontStackTraceView extends AphrontView {
|
||||||
|
|
||||||
return phutil_tag(
|
return phutil_tag(
|
||||||
'div',
|
'div',
|
||||||
array('class' => 'exception-trace'),
|
|
||||||
array(
|
array(
|
||||||
phutil_tag(
|
'class' => 'exception-trace',
|
||||||
'div',
|
),
|
||||||
array('class' => 'exception-trace-header'),
|
$table->render());
|
||||||
pht('Stack Trace')),
|
|
||||||
$table->render(),
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
background: {$lightgreybackground};
|
background: {$lightgreybackground};
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
border-top: 1px solid #d4dadf;
|
border-top: 1px solid {$thinblueborder};
|
||||||
}
|
}
|
||||||
|
|
||||||
.aphront-dialog-foot {
|
.aphront-dialog-foot {
|
||||||
|
@ -95,21 +95,14 @@
|
||||||
|
|
||||||
.aphront-exception-dialog .exception-message {
|
.aphront-exception-dialog .exception-message {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background: #efefef;
|
background: {$sh-yellowbackground};
|
||||||
padding: 1em;
|
border: 1px solid {$sh-yellowborder};
|
||||||
|
padding: 12px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aphront-exception-dialog .exception-trace {
|
.aphront-exception-dialog .exception-trace {
|
||||||
margin-top: 15px;
|
margin-top: 16px;
|
||||||
}
|
|
||||||
|
|
||||||
.aphront-exception-dialog .exception-trace-header {
|
|
||||||
font-size: 11px;
|
|
||||||
color: {$greytext};
|
|
||||||
border-bottom: 1px solid #aaaaaa;
|
|
||||||
padding-bottom: .5em;
|
|
||||||
margin-bottom: .5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.aphront-access-dialog {
|
.aphront-access-dialog {
|
||||||
|
|
Loading…
Reference in a new issue