Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Adjusts arrow height

AuthorDave Jarvis <email>
Date2026-02-20 19:30:19 GMT-0800
Commit1c0a0c1f04cc85063585680e7e679eb2ac3fdc99
Parent81bf4e1
pages/CommitsPage.php
private function svgArrow( string $type ): string {
$icons = [
- 'back' => '<path d="M15 20 L7 12 L15 4" />',
- 'next' => '<path d="M9 20 L17 12 L9 4" />',
- 'first' => '<path d="M13 20 L5 12 L13 4 M19 20 L11 12 L19 4" />',
- 'last' => '<path d="M11 20 L19 12 L11 4 M5 20 L13 12 L5 4" />',
+ 'back' => '<path d="M14 17 L9 12 L14 7" />',
+ 'next' => '<path d="M10 17 L15 12 L10 7" />',
+ 'first' => '<path d="M13 17 L6 12 L13 7 M19 17 L12 12 L19 7" />',
+ 'last' => '<path d="M11 17 L18 12 L11 7 M5 17 L12 12 L5 7" />',
];
$inner = $icons[$type] ?? '';
- $svg = '<svg xmlns="http://www.w3.org/2000/svg" width="24" ' .
- 'height="18" viewBox="0 0 18 18" fill="none" ' .
- 'stroke="currentColor" stroke-width="2" ' .
+ $svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ' .
+ 'fill="none" stroke="currentColor" stroke-width="2" ' .
'stroke-linecap="round" stroke-linejoin="round" ' .
'aria-label="' . $type . '" role="img">' .
styles/repo.css
}
+.page-nav svg {
+ height: 1ex;
+ width: auto;
+ vertical-align: middle;
+}
+
.page-nav-hidden {
visibility: hidden;
Delta12 lines added, 7 lines removed, 5-line increase