Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git
pages/BasePage.php
?>
<span class="clone-sizer"><?php echo htmlspecialchars( $cloneCmd ); ?></span>
- <input type="text" class="clone-input" readonly
+ <input type="text" class="clone-input" readonly autofocus
value="<?php echo htmlspecialchars( $cloneCmd ); ?>">
</div>
styles/repo.css
border-radius: 6px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
- /* Ensure it doesn't exceed screen width */
max-width: calc(100vw - 40px);
}
.clone-checkbox:checked ~ .clone-region {
display: block;
}
-/* The grid trick for auto-sizing */
.clone-wrapper {
display: inline-grid;
visibility: hidden;
white-space: pre;
- /* Must match input font exactly */
font-family: monospace;
font-size: 13px;
- padding: 8px; /* Must match input padding */
- border: 1px solid transparent; /* Must match input border width */
+ padding: 8px;
+ border: 1px solid transparent;
}
font-size: 13px;
box-sizing: border-box;
+ user-select: all;
+ -webkit-user-select: all;
}
-

Attempts to autofocus clone button

Author Dave Jarvis <email>
Date 2026-02-18 23:33:00 GMT-0800
Commit e4b81d2e14794762f529991e0c45effcb47f6a95
Parent 1400387
Delta 5 lines added, 7 lines removed, 2-line decrease