LP: Fix ToC panel height + use bootstrap file from assets dir - refs BT#18201

pull/3889/head
Angel Fernando Quiroz Campos 4 years ago
parent c666586698
commit 4494dd418e
  1. 4
      main/lp/LpIndexGenerator.php

@ -42,7 +42,6 @@ class LpIndexGenerator
{
$iso = api_get_language_isocode();
$title = api_utf8_encode($this->lp->get_name());
$bootstrapCs = file_get_contents(api_get_path(SYS_PUBLIC_PATH).'assets/bootstrap/dist/css/bootstrap.min.css');
$this->domDocument->loadHTML(
'<!doctype html>
@ -53,9 +52,10 @@ class LpIndexGenerator
content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>'.$title.'</title>
<link rel="stylesheet" href="assets/bootstrap/bootstrap.min.css">
<style>
'.$bootstrapCs.'
.page-header { margin-top: 0; padding-top: 10px; }
#toc__ul { height: calc(100vh - 80px - 15px); overflow: auto; }
</style>
</head>
<body>

Loading…
Cancel
Save