File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/components/navigation Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
const THEME_SWITCHER_WIDTH = 56 ; // Width of the theme switcher component in pixels
19
19
const EXTRA_PADDING = 32 ; // Extra padding to account for padding and margins in pixels
20
+ const LINKS_GAP = ' 1rem' ; // Matches gap-x-4 in the template
21
+ const LINK_PADDING = ' 0.25rem 0.5rem' ; // Matches px-2 py-1 in the template
20
22
21
23
let headerLinks = $state (null );
22
24
59
61
tempDiv .style .position = ' absolute' ;
60
62
tempDiv .style .visibility = ' hidden' ;
61
63
tempDiv .style .display = ' flex' ;
62
- tempDiv .style .gap = ' 1rem ' ;
64
+ tempDiv .style .gap = LINKS_GAP ;
63
65
64
66
if (Object .keys (headerLinks).length > 0 ) {
65
67
Object .keys (headerLinks).forEach ((key ) => {
66
68
const linkDiv = document .createElement (' div' );
67
- linkDiv .style .padding = ' 0.25rem 0.5rem ' ;
69
+ linkDiv .style .padding = LINK_PADDING ;
68
70
linkDiv .style .flexShrink = ' 0' ;
69
71
linkDiv .textContent = key;
70
72
tempDiv .appendChild (linkDiv);
You can’t perform that action at this time.
0 commit comments