Verified Commit 005c0e91 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3397291 by Utkarsh_33, rkoller, smustgrave: Improve the readability of...

Issue #3397291 by Utkarsh_33, rkoller, smustgrave: Improve the readability of the view mode and form mode page
parent b7540532
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
.display-mode-table th:first-child {
  width: 30%;
}
.display-mode-table th:nth-child(2) {
  width: 50%;
}
.display-mode-table th:last-child {
  width: 20%;
}
.display-mode-table td {
  max-width: 50px;
  word-wrap: break-word;
}
+6 −0
Original line number Diff line number Diff line
@@ -21,3 +21,9 @@ drupal.field_ui.manage_fields:
    theme:
      css/field_ui_add_field.theme.css: {}
      css/field_ui.icons.theme.css: {}

drupal.field_ui_table:
  version: VERSION
  css:
    theme:
      css/field_ui_display_mode_table.css: {}
+4 −0
Original line number Diff line number Diff line
@@ -129,6 +129,9 @@ public function render() {
        '#type' => 'table',
        '#header' => $this->buildHeader(),
        '#rows' => [],
        '#attributes' => [
          'class' => ['display-mode-table'],
        ],
      ];
      foreach ($entities as $entity) {
        if ($row = $this->buildRow($entity)) {
@@ -158,6 +161,7 @@ public function render() {
          '#attached' => [
            'library' => [
              'core/drupal.dialog.ajax',
              'field_ui/drupal.field_ui_table',
            ],
          ],
        ],
+13 −0
Original line number Diff line number Diff line
.display-mode-table th:first-child {
  width: 30%;
}
.display-mode-table th:nth-child(2) {
  width: 50%;
}
.display-mode-table th:last-child {
  width: 20%;
}
.display-mode-table td {
  max-width: 50px;
  word-wrap: break-word;
}
+4 −0
Original line number Diff line number Diff line
@@ -296,6 +296,10 @@ libraries-override:
      theme:
        css/views_ui.admin.theme.css: css/views_ui/views_ui.admin.theme.css
        css/views_ui.contextual.css: css/views_ui/views_ui.contextual.css
  field_ui/drupal.field_ui_table:
    css:
      theme:
        css/field_ui_display_mode_table.css: css/field_ui/field_ui_display_mode_table.css

libraries-extend:
  tour/tour: