mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-04 17:04:32 +08:00
Updated page-nav to show more title content
Will now be truncated using CSS instead of being truncated on PHP side. Closes #1206.
This commit is contained in:
@ -424,9 +424,7 @@ class PageRepo extends EntityRepo
|
||||
|
||||
$tree = collect($headers)->map(function($header) {
|
||||
$text = trim(str_replace("\xc2\xa0", '', $header->nodeValue));
|
||||
if (mb_strlen($text) > 30) {
|
||||
$text = mb_substr($text, 0, 27) . '...';
|
||||
}
|
||||
$text = mb_substr($text, 0, 100);
|
||||
|
||||
return [
|
||||
'nodeName' => strtolower($header->nodeName),
|
||||
|
Reference in New Issue
Block a user