lvwerra HF Staff commited on
Commit
fd5db99
·
verified ·
1 Parent(s): 545eab2

Install page: visible SVG caret on the code panel, relock note moved to the top

Browse files
web/src/components/Locked.tsx CHANGED
@@ -150,6 +150,10 @@ api.duplicate_repo(
150
  This copy is <b>public</b>, so its terminals are disabled: the app has no login of its
151
  own — a public instance would hand anyone a shell. Your duplicate stays private and unlocks itself.
152
  </p>
 
 
 
 
153
 
154
  <div className="step">
155
  <div className="step-head"><span className="step-n mono">1</span><h3>Duplicate this Space</h3></div>
@@ -176,7 +180,7 @@ api.duplicate_repo(
176
  <summary className="step-head">
177
  <span className="step-n mono">&gt;_</span>
178
  <h3>Prefer code? Both steps in one script</h3>
179
- <span className="install-code-caret"></span>
180
  </summary>
181
  <div className="locked-cmd">
182
  <pre><code>{cmd}</code></pre>
@@ -188,11 +192,6 @@ api.duplicate_repo(
188
  </button>
189
  </div>
190
  </details>
191
-
192
- <p className="locked-sub install-relock">
193
- <b>Is this your Space?</b> Set it back to <b>Private</b> in Settings → Change visibility —
194
- it unlocks automatically within a minute.
195
- </p>
196
  </div>
197
  </div>
198
  </div>
 
150
  This copy is <b>public</b>, so its terminals are disabled: the app has no login of its
151
  own — a public instance would hand anyone a shell. Your duplicate stays private and unlocks itself.
152
  </p>
153
+ <p className="locked-sub install-relock">
154
+ <b>Is this your Space?</b> Set it back to <b>Private</b> in Settings → Change visibility —
155
+ it unlocks automatically within a minute.
156
+ </p>
157
 
158
  <div className="step">
159
  <div className="step-head"><span className="step-n mono">1</span><h3>Duplicate this Space</h3></div>
 
180
  <summary className="step-head">
181
  <span className="step-n mono">&gt;_</span>
182
  <h3>Prefer code? Both steps in one script</h3>
183
+ <svg className="install-code-caret" viewBox="0 0 10 10" aria-hidden="true"><path d="M1.8 3.2h6.4L5 7.4z" fill="currentColor" /></svg>
184
  </summary>
185
  <div className="locked-cmd">
186
  <pre><code>{cmd}</code></pre>
 
192
  </button>
193
  </div>
194
  </details>
 
 
 
 
 
195
  </div>
196
  </div>
197
  </div>
web/src/styles.css CHANGED
@@ -347,10 +347,11 @@ body {
347
  .install-code summary { cursor: pointer; list-style: none; }
348
  .install-code summary::-webkit-details-marker { display: none; }
349
  .install-code summary .step-n { border-radius: var(--r-sm); font-size: 9px; letter-spacing: 0.02em; }
350
- .install-code .install-code-caret { margin-left: auto; color: var(--muted); font-size: 11px; transition: transform 0.15s ease-out; display: inline-block; }
351
- .install-code[open] .install-code-caret { transform: rotate(90deg); }
 
352
  .install-code[open] summary { margin-bottom: 4px; }
353
- .install-relock { border-top: 1px solid var(--border); padding-top: 14px; }
354
  .locked-cmd { position: relative; margin-top: 8px; }
355
  .locked-cmd pre { margin: 0; overflow-x: hidden; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 42px 14px 14px; font-size: 12px; line-height: 1.5; }
356
  .locked-copy { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--panel); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
 
347
  .install-code summary { cursor: pointer; list-style: none; }
348
  .install-code summary::-webkit-details-marker { display: none; }
349
  .install-code summary .step-n { border-radius: var(--r-sm); font-size: 9px; letter-spacing: 0.02em; }
350
+ .install-code .install-code-caret { margin-left: auto; width: 12px; height: 12px; color: var(--muted); transition: transform 0.15s ease-out; transform: rotate(-90deg); transform-origin: 50% 50%; flex: none; }
351
+ .install-code[open] .install-code-caret { transform: rotate(0deg); }
352
+ .install-code summary:hover .install-code-caret { color: var(--text); }
353
  .install-code[open] summary { margin-bottom: 4px; }
354
+ .install-relock { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
355
  .locked-cmd { position: relative; margin-top: 8px; }
356
  .locked-cmd pre { margin: 0; overflow-x: hidden; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 42px 14px 14px; font-size: 12px; line-height: 1.5; }
357
  .locked-copy { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--panel); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }