Skip to content

Commit

Permalink
[5.2] Wrap long text to prevent layout displaying beyond viewport (#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
Quy authored Nov 12, 2024
1 parent 8214d1e commit b864b19
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class_alias(DebugAdapter::class, Adapter::class);
$output .= '<dl class="row">';

foreach (DebugIndexer::$item as $key => $value) {
$output .= '<dt class="col-sm-2">' . $key . '</dt><dd class="col-sm-10">' . $value . '</dd>';
$output .= '<dt class="col-sm-2">' . $key . '</dt><dd class="col-sm-10 text-break">' . $value . '</dd>';
}

$output .= '</dl>';
Expand All @@ -375,7 +375,7 @@ class_alias(DebugAdapter::class, Adapter::class);
$output .= '<dl class="row">';

foreach (DebugIndexer::$item->getElements() as $key => $element) {
$output .= '<dt class="col-sm-2">' . $key . '</dt><dd class="col-sm-10">' . $element . '</dd>';
$output .= '<dt class="col-sm-2">' . $key . '</dt><dd class="col-sm-10 text-break">' . $element . '</dd>';
}

$output .= '</dl>';
Expand All @@ -392,7 +392,7 @@ class_alias(DebugAdapter::class, Adapter::class);
];

foreach (DebugIndexer::$item->getInstructions() as $key => $element) {
$output .= '<dt class="col-sm-2">' . $contexts[$key] . '</dt><dd class="col-sm-10">' . json_encode($element) . '</dd>';
$output .= '<dt class="col-sm-2">' . $contexts[$key] . '</dt><dd class="col-sm-10 text-break">' . json_encode($element) . '</dd>';
}

$output .= '</dl>';
Expand All @@ -402,7 +402,7 @@ class_alias(DebugAdapter::class, Adapter::class);
$output .= '<dl class="row">';

foreach (DebugIndexer::$item->getTaxonomy() as $key => $element) {
$output .= '<dt class="col-sm-2">' . $key . '</dt><dd class="col-sm-10">' . json_encode($element) . '</dd>';
$output .= '<dt class="col-sm-2">' . $key . '</dt><dd class="col-sm-10 text-break">' . json_encode($element) . '</dd>';
}

$output .= '</dl>';
Expand Down

0 comments on commit b864b19

Please sign in to comment.