mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Limit width of differential, maniphest properties tables
Summary: Sometimes, elements in a property table at the top of a differential revision view or maniphest task detail view will have a minimum width that is too wide to fit in the table without causing the table's width to exceed the width of its parent div. This diff changes the table layout algorithm so that the table's width never exceeds the width of its parent div. In the case of a code block causing the excess width, it puts a scrollbar on the block instead of letting content spill out. Due to the way the fixed table layout algorithm works, the width of the left column (containing headers) is set to a fixed width. I chose a width for differential that works with the default headers, but site-specific headers might not fit. Test Plan: Created a task, added a code block in the description that had an unreasonably long line in it, and visually verified that the <td> containing the <code> did not expand horizontally past the limit defined by the <div> containing the <table>. I also loaded a differential revision view and checked that its table looks sane. Reviewers: epriestley, jungejason, aran Reviewed By: epriestley CC: aran, nh, epriestley Differential Revision: 1028
This commit is contained in:
parent
ffe80ba15d
commit
0778f35272
4 changed files with 79 additions and 78 deletions
|
@ -231,7 +231,7 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'differential-revision-detail-css' =>
|
||||
array(
|
||||
'uri' => '/res/015e5995/rsrc/css/application/differential/revision-detail.css',
|
||||
'uri' => '/res/fcdb82ac/rsrc/css/application/differential/revision-detail.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
|
@ -423,7 +423,7 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'javelin-behavior-differential-add-reviewers-and-ccs' =>
|
||||
array(
|
||||
'uri' => '/res/fc352745/rsrc/js/application/differential/behavior-add-reviewers-and-ccs.js',
|
||||
'uri' => '/res/c306ae14/rsrc/js/application/differential/behavior-add-reviewers-and-ccs.js',
|
||||
'type' => 'js',
|
||||
'requires' =>
|
||||
array(
|
||||
|
@ -615,7 +615,7 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'javelin-behavior-maniphest-transaction-controls' =>
|
||||
array(
|
||||
'uri' => '/res/94a2a395/rsrc/js/application/maniphest/behavior-transaction-controls.js',
|
||||
'uri' => '/res/33bd237a/rsrc/js/application/maniphest/behavior-transaction-controls.js',
|
||||
'type' => 'js',
|
||||
'requires' =>
|
||||
array(
|
||||
|
@ -653,17 +653,6 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'disk' => '/rsrc/js/application/maniphest/behavior-transaction-preview.js',
|
||||
),
|
||||
0 =>
|
||||
array(
|
||||
'uri' => '/res/1da00bfe/rsrc/js/javelin/lib/__tests__/URI.js',
|
||||
'type' => 'js',
|
||||
'requires' =>
|
||||
array(
|
||||
0 => 'javelin-uri',
|
||||
1 => 'javelin-php-serializer',
|
||||
),
|
||||
'disk' => '/rsrc/js/javelin/lib/__tests__/URI.js',
|
||||
),
|
||||
'javelin-behavior-owners-path-editor' =>
|
||||
array(
|
||||
'uri' => '/res/9cf78ffc/rsrc/js/application/owners/owners-path-editor.js',
|
||||
|
@ -1063,6 +1052,15 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'disk' => '/rsrc/js/javelin/lib/control/typeahead/source/TypeaheadSource.js',
|
||||
),
|
||||
0 =>
|
||||
array(
|
||||
'uri' => '/res/936e8e81/rsrc/js/javelin/docs/onload.js',
|
||||
'type' => 'js',
|
||||
'requires' =>
|
||||
array(
|
||||
),
|
||||
'disk' => '/rsrc/js/javelin/docs/onload.js',
|
||||
),
|
||||
'javelin-uri' =>
|
||||
array(
|
||||
'uri' => '/res/a6d12b2c/rsrc/js/javelin/lib/URI.js',
|
||||
|
@ -1114,7 +1112,7 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'mainphest-task-detail-css' =>
|
||||
array(
|
||||
'uri' => '/res/e2fbb468/rsrc/css/application/maniphest/task-detail.css',
|
||||
'uri' => '/res/6a84b276/rsrc/css/application/maniphest/task-detail.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
|
@ -1317,7 +1315,7 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'phabricator-remarkup-css' =>
|
||||
array(
|
||||
'uri' => '/res/7ca89111/rsrc/css/core/remarkup.css',
|
||||
'uri' => '/res/4305dda8/rsrc/css/core/remarkup.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
|
@ -1412,26 +1410,7 @@ celerity_register_resource_map(array(
|
|||
'uri' => '/res/pkg/03ef179e/diffusion.pkg.css',
|
||||
'type' => 'css',
|
||||
),
|
||||
'3dbf4083' =>
|
||||
array(
|
||||
'name' => 'javelin.pkg.js',
|
||||
'symbols' =>
|
||||
array(
|
||||
0 => 'javelin-util',
|
||||
1 => 'javelin-install',
|
||||
2 => 'javelin-event',
|
||||
3 => 'javelin-stratcom',
|
||||
4 => 'javelin-behavior',
|
||||
5 => 'javelin-request',
|
||||
6 => 'javelin-vector',
|
||||
7 => 'javelin-dom',
|
||||
8 => 'javelin-json',
|
||||
9 => 'javelin-uri',
|
||||
),
|
||||
'uri' => '/res/pkg/3dbf4083/javelin.pkg.js',
|
||||
'type' => 'js',
|
||||
),
|
||||
'3e0f4d11' =>
|
||||
'0ceb1eac' =>
|
||||
array(
|
||||
'name' => 'core.pkg.css',
|
||||
'symbols' =>
|
||||
|
@ -1452,9 +1431,28 @@ celerity_register_resource_map(array(
|
|||
13 => 'phabricator-remarkup-css',
|
||||
14 => 'syntax-highlighting-css',
|
||||
),
|
||||
'uri' => '/res/pkg/3e0f4d11/core.pkg.css',
|
||||
'uri' => '/res/pkg/0ceb1eac/core.pkg.css',
|
||||
'type' => 'css',
|
||||
),
|
||||
'3dbf4083' =>
|
||||
array(
|
||||
'name' => 'javelin.pkg.js',
|
||||
'symbols' =>
|
||||
array(
|
||||
0 => 'javelin-util',
|
||||
1 => 'javelin-install',
|
||||
2 => 'javelin-event',
|
||||
3 => 'javelin-stratcom',
|
||||
4 => 'javelin-behavior',
|
||||
5 => 'javelin-request',
|
||||
6 => 'javelin-vector',
|
||||
7 => 'javelin-dom',
|
||||
8 => 'javelin-json',
|
||||
9 => 'javelin-uri',
|
||||
),
|
||||
'uri' => '/res/pkg/3dbf4083/javelin.pkg.js',
|
||||
'type' => 'js',
|
||||
),
|
||||
'4aa8c13f' =>
|
||||
array(
|
||||
'name' => 'typeahead.pkg.js',
|
||||
|
@ -1471,23 +1469,6 @@ celerity_register_resource_map(array(
|
|||
'uri' => '/res/pkg/4aa8c13f/typeahead.pkg.js',
|
||||
'type' => 'js',
|
||||
),
|
||||
'7bf96a66' =>
|
||||
array(
|
||||
'name' => 'differential.pkg.css',
|
||||
'symbols' =>
|
||||
array(
|
||||
0 => 'differential-core-view-css',
|
||||
1 => 'differential-changeset-view-css',
|
||||
2 => 'differential-revision-detail-css',
|
||||
3 => 'differential-revision-history-css',
|
||||
4 => 'differential-table-of-contents-css',
|
||||
5 => 'differential-revision-comment-css',
|
||||
6 => 'differential-revision-add-comment-css',
|
||||
7 => 'differential-revision-comment-list-css',
|
||||
),
|
||||
'uri' => '/res/pkg/7bf96a66/differential.pkg.css',
|
||||
'type' => 'css',
|
||||
),
|
||||
'95c67dcd' =>
|
||||
array(
|
||||
'name' => 'workflow.pkg.js',
|
||||
|
@ -1518,26 +1499,43 @@ celerity_register_resource_map(array(
|
|||
'uri' => '/res/pkg/982ad44b/differential.pkg.js',
|
||||
'type' => 'js',
|
||||
),
|
||||
'b7a18809' =>
|
||||
array(
|
||||
'name' => 'differential.pkg.css',
|
||||
'symbols' =>
|
||||
array(
|
||||
0 => 'differential-core-view-css',
|
||||
1 => 'differential-changeset-view-css',
|
||||
2 => 'differential-revision-detail-css',
|
||||
3 => 'differential-revision-history-css',
|
||||
4 => 'differential-table-of-contents-css',
|
||||
5 => 'differential-revision-comment-css',
|
||||
6 => 'differential-revision-add-comment-css',
|
||||
7 => 'differential-revision-comment-list-css',
|
||||
),
|
||||
'uri' => '/res/pkg/b7a18809/differential.pkg.css',
|
||||
'type' => 'css',
|
||||
),
|
||||
),
|
||||
'reverse' =>
|
||||
array(
|
||||
'aphront-crumbs-view-css' => '3e0f4d11',
|
||||
'aphront-dialog-view-css' => '3e0f4d11',
|
||||
'aphront-form-view-css' => '3e0f4d11',
|
||||
'aphront-list-filter-view-css' => '3e0f4d11',
|
||||
'aphront-panel-view-css' => '3e0f4d11',
|
||||
'aphront-side-nav-view-css' => '3e0f4d11',
|
||||
'aphront-table-view-css' => '3e0f4d11',
|
||||
'aphront-tokenizer-control-css' => '3e0f4d11',
|
||||
'aphront-typeahead-control-css' => '3e0f4d11',
|
||||
'differential-changeset-view-css' => '7bf96a66',
|
||||
'differential-core-view-css' => '7bf96a66',
|
||||
'differential-revision-add-comment-css' => '7bf96a66',
|
||||
'differential-revision-comment-css' => '7bf96a66',
|
||||
'differential-revision-comment-list-css' => '7bf96a66',
|
||||
'differential-revision-detail-css' => '7bf96a66',
|
||||
'differential-revision-history-css' => '7bf96a66',
|
||||
'differential-table-of-contents-css' => '7bf96a66',
|
||||
'aphront-crumbs-view-css' => '0ceb1eac',
|
||||
'aphront-dialog-view-css' => '0ceb1eac',
|
||||
'aphront-form-view-css' => '0ceb1eac',
|
||||
'aphront-list-filter-view-css' => '0ceb1eac',
|
||||
'aphront-panel-view-css' => '0ceb1eac',
|
||||
'aphront-side-nav-view-css' => '0ceb1eac',
|
||||
'aphront-table-view-css' => '0ceb1eac',
|
||||
'aphront-tokenizer-control-css' => '0ceb1eac',
|
||||
'aphront-typeahead-control-css' => '0ceb1eac',
|
||||
'differential-changeset-view-css' => 'b7a18809',
|
||||
'differential-core-view-css' => 'b7a18809',
|
||||
'differential-revision-add-comment-css' => 'b7a18809',
|
||||
'differential-revision-comment-css' => 'b7a18809',
|
||||
'differential-revision-comment-list-css' => 'b7a18809',
|
||||
'differential-revision-detail-css' => 'b7a18809',
|
||||
'differential-revision-history-css' => 'b7a18809',
|
||||
'differential-table-of-contents-css' => 'b7a18809',
|
||||
'diffusion-commit-view-css' => '03ef179e',
|
||||
'javelin-behavior' => '3dbf4083',
|
||||
'javelin-behavior-aphront-basic-tokenizer' => '4aa8c13f',
|
||||
|
@ -1566,13 +1564,13 @@ celerity_register_resource_map(array(
|
|||
'javelin-util' => '3dbf4083',
|
||||
'javelin-vector' => '3dbf4083',
|
||||
'javelin-workflow' => '95c67dcd',
|
||||
'phabricator-core-buttons-css' => '3e0f4d11',
|
||||
'phabricator-core-css' => '3e0f4d11',
|
||||
'phabricator-directory-css' => '3e0f4d11',
|
||||
'phabricator-core-buttons-css' => '0ceb1eac',
|
||||
'phabricator-core-css' => '0ceb1eac',
|
||||
'phabricator-directory-css' => '0ceb1eac',
|
||||
'phabricator-keyboard-shortcut' => '95c67dcd',
|
||||
'phabricator-keyboard-shortcut-manager' => '95c67dcd',
|
||||
'phabricator-remarkup-css' => '3e0f4d11',
|
||||
'phabricator-standard-page-view' => '3e0f4d11',
|
||||
'syntax-highlighting-css' => '3e0f4d11',
|
||||
'phabricator-remarkup-css' => '0ceb1eac',
|
||||
'phabricator-standard-page-view' => '0ceb1eac',
|
||||
'syntax-highlighting-css' => '0ceb1eac',
|
||||
),
|
||||
));
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
.differential-revision-properties {
|
||||
font-size: 12px;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.differential-revision-properties tt {
|
||||
|
@ -13,7 +14,7 @@
|
|||
|
||||
.differential-revision-properties th {
|
||||
font-weight: bold;
|
||||
width: 100px;
|
||||
width: 120px;
|
||||
text-align: right;
|
||||
padding: 3px 4px 3px 3px;
|
||||
color: #333333;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
.maniphest-task-properties {
|
||||
font-size: 12px;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.maniphest-task-properties tt {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
color: #000000;
|
||||
margin: 1em 2em;
|
||||
padding: .5em 1.5em;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.phabricator-remarkup code.remarkup-counterexample {
|
||||
|
|
Loading…
Reference in a new issue