Skip to content

Commit

Permalink
Correct spacing in chart-box and in powered-by-webtrees footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jchue committed Mar 8, 2023
1 parent a6cd612 commit f266909
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions module.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function boot(): void
View::registerCustomView('::layouts/default', $this->name() . '::layouts/default'); // Site template
View::registerCustomView('::modules/contact-links/footer', $this->name() . '::modules/contact-links/footer'); // Footer > contact line
View::registerCustomView('::modules/hit-counter/footer', $this->name() . '::modules/hit-counter/footer'); // Footer > view count
View::registerCustomView('::modules/powered-by-webtrees/footer', $this->name() . '::modules/powered-by-webtrees/footer'); // Footer > webtrees link
View::registerCustomView('::modules/privacy-policy/footer', $this->name() . '::modules/privacy-policy/footer'); // Footer > privacy policy link

/**
Expand Down
2 changes: 1 addition & 1 deletion resources/views/chart-box.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$view = view('::chart-box', get_defined_vars());

$view = preg_replace('/wt-chart-box-thumbnail float-left mr-1/', 'wt-chart-box-thumbnail float-left mr-2', $view); // Increase thumbnail margin
$view = preg_replace('/wt-chart-box-thumbnail float-start me-1/', 'wt-chart-box-thumbnail float-start me-2', $view); // Increase thumbnail margin
$view = preg_replace('/<i class="icon-pedigree".+?<\/i>/', view('icons/pedigree-right'), $view); // Replace icon for individual's links
$view = preg_replace('/dropdown-item p-1/', 'dropdown-item', $view); // Increase padding around individual's links by removing small padding class
$view = preg_replace('/dropdown-menu-end/', '', $view); // Remove right aligning of dropdowns because Argon applies a positioning incompatible with Popper
Expand Down
6 changes: 6 additions & 0 deletions resources/views/modules/powered-by-webtrees/footer.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

$view = view('::modules/powered-by-webtrees/footer', get_defined_vars());
$view = preg_replace('/my-2/', '', $view); // Remove vertical padding

echo $view;

0 comments on commit f266909

Please sign in to comment.