| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-18 23:34:42 GMT-0800 |
| Commit | 21907e151a4c49482ae93b6172f37121e9bf6a3e |
| Parent | e4b81d2 |
| Delta | 9 lines added, 30 lines removed, 21-line decrease |
|---|
| <?php if( $currentRepo ) { ?> | ||
| <div class="clone-region"> | ||
| - <div class="clone-wrapper"> | ||
| - <?php | ||
| - $cloneCmd = 'git clone https://repo.autonoma.ca/repo/' . | ||
| - $currentRepo['safe_name'] . '.git'; | ||
| - ?> | ||
| - <span class="clone-sizer"><?php echo htmlspecialchars( $cloneCmd ); ?></span> | ||
| - <input type="text" class="clone-input" readonly autofocus | ||
| - value="<?php echo htmlspecialchars( $cloneCmd ); ?>"> | ||
| - </div> | ||
| + <input type="text" class="clone-input" readonly | ||
| + value="<?php | ||
| + echo htmlspecialchars( | ||
| + 'git clone https://repo.autonoma.ca/repo/' . | ||
| + $currentRepo['safe_name'] . '.git' | ||
| + ); | ||
| + ?>"> | ||
| </div> | ||
| <?php } ?> |
| border-radius: 6px; | ||
| box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); | ||
| - max-width: calc(100vw - 40px); | ||
| } | ||
| .clone-checkbox:checked ~ .clone-region { | ||
| display: block; | ||
| -} | ||
| - | ||
| -.clone-wrapper { | ||
| - display: inline-grid; | ||
| - vertical-align: top; | ||
| - align-items: center; | ||
| -} | ||
| - | ||
| -.clone-sizer { | ||
| - grid-area: 1 / 1; | ||
| - visibility: hidden; | ||
| - white-space: pre; | ||
| - font-family: monospace; | ||
| - font-size: 13px; | ||
| - padding: 8px; | ||
| - border: 1px solid transparent; | ||
| } | ||
| .clone-input { | ||
| - grid-area: 1 / 1; | ||
| - width: 100%; | ||
| + width: 600px; | ||
| + max-width: calc(100vw - 60px); | ||
| padding: 8px; | ||
| background: #0d1117; | ||
| color: #c9d1d9; | ||
| border: 1px solid #30363d; | ||
| border-radius: 4px; | ||
| font-family: monospace; | ||
| font-size: 13px; | ||
| box-sizing: border-box; | ||
| - user-select: all; | ||
| - -webkit-user-select: all; | ||
| } | ||