Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Apr 6, 2024
2 parents 2016591 + d1875a9 commit a0e2d27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@
namespace ACPL\MobileTab;

use Flarum\Extend;
use Flarum\Frontend\Document;

return [
(new Extend\Frontend('forum'))->js(__DIR__.'/js/dist/forum.js')->css(__DIR__.'/less/forum.less'),

new Extend\Locales(__DIR__.'/locale'),

(new Extend\Frontend('forum'))
->content(function (Document $document) {
$document->meta['viewport'] = "{$document->meta['viewport']}, viewport-fit=cover";
}),

];
2 changes: 1 addition & 1 deletion less/forum.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
bottom: 0;
left: 0;
width: 100%;
height: var(--mobile-tab-height);
height: ~"calc(var(--mobile-tab-height) + env(safe-area-inset-bottom, 0))";
background: var(--mobile-tab-bg);
box-shadow: var(--mobile-tab-shadow);
z-index: var(--mobile-tab-zindex);
Expand Down

0 comments on commit a0e2d27

Please sign in to comment.