fix: [ui:search_all] Fixed dropdown width to avoid screen overflow for large results
- This will put an end to @gallypette and @adulau's pesteringpull/184/head
parent
ad3a8ee7c5
commit
324767868e
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
foreach ($tableResult['entries'] as $entry) {
|
foreach ($tableResult['entries'] as $entry) {
|
||||||
if ($entry->getSource() == 'MetaFields') {
|
if ($entry->getSource() == 'MetaFields') {
|
||||||
$section .= sprintf('<a class="dropdown-item" href="%s">%s</a>',
|
$section .= sprintf('<a class="dropdown-item" href="%s" style="max-width: 70vw; overflow: hidden; text-overflow: ellipsis;">%s</a>',
|
||||||
Cake\Routing\Router::URL([
|
Cake\Routing\Router::URL([
|
||||||
'controller' => Cake\Utility\Inflector::pluralize($entry->scope),
|
'controller' => Cake\Utility\Inflector::pluralize($entry->scope),
|
||||||
'action' => 'view',
|
'action' => 'view',
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
sprintf('%s (%s::%s)', h($entry->value), h($entry->scope), h($entry->field))
|
sprintf('%s (%s::%s)', h($entry->value), h($entry->scope), h($entry->field))
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$section .= sprintf('<a class="dropdown-item" href="%s">%s</a>',
|
$section .= sprintf('<a class="dropdown-item" href="%s" style="max-width: 70vw; overflow: hidden; text-overflow: ellipsis;">%s</a>',
|
||||||
Cake\Routing\Router::URL([
|
Cake\Routing\Router::URL([
|
||||||
'controller' => Cake\Utility\Inflector::pluralize($entry->getSource()),
|
'controller' => Cake\Utility\Inflector::pluralize($entry->getSource()),
|
||||||
'action' => 'view',
|
'action' => 'view',
|
||||||
|
|
Loading…
Reference in New Issue