1
0
Fork 0
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:
Chad Little 2015-02-19 08:45:37 -08:00
parent 4c2e36f561
commit 08e67e0db7
4 changed files with 29 additions and 35 deletions

View file

@ -7,7 +7,7 @@
*/
return array(
'names' => array(
'core.pkg.css' => '8edbf4c0',
'core.pkg.css' => '048d109b',
'core.pkg.js' => '23d653bb',
'darkconsole.pkg.js' => '8ab24e01',
'differential.pkg.css' => '380f07e5',
@ -19,7 +19,7 @@ return array(
'rsrc/css/aphront/aphront-bars.css' => '231ac33c',
'rsrc/css/aphront/context-bar.css' => '1c3b0529',
'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/list-filter-view.css' => '2ae43867',
'rsrc/css/aphront/multi-column.css' => '41a848c0',
@ -501,7 +501,7 @@ return array(
'aphront-bars' => '231ac33c',
'aphront-contextbar-view-css' => '1c3b0529',
'aphront-dark-console-css' => '6378ef3d',
'aphront-dialog-view-css' => '52dcd4c6',
'aphront-dialog-view-css' => 'd2e76b88',
'aphront-list-filter-view-css' => '2ae43867',
'aphront-multi-column-view-css' => '41a848c0',
'aphront-pager-view-css' => '2e3539af',

View file

@ -311,6 +311,19 @@ final class AphrontDialogView extends AphrontView {
$this->footers);
}
$tail = null;
if ($buttons || $footer) {
$tail = phutil_tag(
'div',
array(
'class' => 'aphront-dialog-tail grouped',
),
array(
$buttons,
$footer,
));
}
$content = array(
phutil_tag(
'div',
@ -323,15 +336,7 @@ final class AphrontDialogView extends AphrontView {
'class' => 'aphront-dialog-body grouped',
),
$children),
phutil_tag(
'div',
array(
'class' => 'aphront-dialog-tail grouped',
),
array(
$buttons,
$footer,
)),
$tail,
);
if ($this->renderAsForm) {

View file

@ -92,10 +92,10 @@ final class AphrontStackTraceView extends AphrontView {
$table = new AphrontTableView($rows);
$table->setHeaders(
array(
'Depth',
'Library',
'File',
'Where',
pht('Depth'),
pht('Library'),
pht('File'),
pht('Where'),
));
$table->setColumnClasses(
array(
@ -107,14 +107,10 @@ final class AphrontStackTraceView extends AphrontView {
return phutil_tag(
'div',
array('class' => 'exception-trace'),
array(
phutil_tag(
'div',
array('class' => 'exception-trace-header'),
pht('Stack Trace')),
$table->render(),
));
'class' => 'exception-trace',
),
$table->render());
}
}

View file

@ -55,7 +55,7 @@
border: none;
background: {$lightgreybackground};
padding: 8px 16px;
border-top: 1px solid #d4dadf;
border-top: 1px solid {$thinblueborder};
}
.aphront-dialog-foot {
@ -95,21 +95,14 @@
.aphront-exception-dialog .exception-message {
font-size: 14px;
background: #efefef;
padding: 1em;
background: {$sh-yellowbackground};
border: 1px solid {$sh-yellowborder};
padding: 12px;
white-space: pre-wrap;
}
.aphront-exception-dialog .exception-trace {
margin-top: 15px;
}
.aphront-exception-dialog .exception-trace-header {
font-size: 11px;
color: {$greytext};
border-bottom: 1px solid #aaaaaa;
padding-bottom: .5em;
margin-bottom: .5em;
margin-top: 16px;
}
.aphront-access-dialog {