Skip to content

Commit a19ab8e

Browse files
committed
fit download script to editor
1 parent 7c38f73 commit a19ab8e

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

app/static/js/auto_share.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class AutoShareManager {
188188
this.linkInput.classList.add('opacity-50');
189189
this.linkInput.disabled = true;
190190
if (this.currentShareUrl) {
191-
this.linkInput.value = this.currentShareUrl + ' (updating...)';
191+
this.linkInput.value = this.currentShareUrl;
192192
}
193193
}
194194
// Keep copy button enabled but just disable if no URL

app/templates/components/workspace_editor.html

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,25 @@ <h3 class="text-lg font-black text-black">Context editor</h3>
2727
</div>
2828

2929
<!-- Install in one click card with tabs -->
30-
<div class="flex justify-center">
31-
<div class="relative inline-block">
32-
<!-- Tabs for the card -->
33-
<div class="flex gap-0">
34-
<button id="share-tab-install" class="share-tab-button active px-3 py-1 bg-pink-400 border-2 border-black border-b-0 text-black font-bold text-xs shadow-[2px_0px_0px_0px_rgba(0,0,0,1)] relative z-10">
35-
macOS/Linux
36-
</button>
37-
<button id="share-tab-other" class="share-tab-button px-3 py-1 bg-gray-100 border-2 border-gray-400 border-b-0 text-gray-500 font-medium text-xs shadow-[1px_0px_0px_0px_rgba(0,0,0,0.3)] relative z-5" disabled>
38-
Windows (soon)
30+
<div class="relative w-full">
31+
<!-- Tabs for the card -->
32+
<div class="flex gap-0">
33+
<button id="share-tab-install" class="share-tab-button active px-3 py-1 bg-pink-400 border-2 border-black border-b-0 text-black font-bold text-xs shadow-[2px_0px_0px_0px_rgba(0,0,0,1)] relative z-10">
34+
macOS/Linux
35+
</button>
36+
<button id="share-tab-other" class="share-tab-button px-3 py-1 bg-gray-100 border-2 border-gray-400 border-b-0 text-gray-500 font-medium text-xs shadow-[1px_0px_0px_0px_rgba(0,0,0,0.3)] relative z-5" disabled>
37+
Windows (soon)
38+
</button>
39+
</div>
40+
41+
<!-- Card content -->
42+
<div id="auto-share-panel" class="bg-pink-400 border-2 border-black shadow-[3px_3px_0px_0px_rgba(0,0,0,1)] p-3 relative z-0 w-full" style="margin-top: -2px;">
43+
<div class="flex gap-2 items-center justify-center">
44+
<input id="share-link-input" type="text" readonly class="px-3 py-1 bg-white border-2 border-black text-black font-mono text-xs shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] focus:outline-none" style="min-width: 450px; cursor: text;" value="Waiting for first save...">
45+
<button id="copy-share-link" class="px-3 py-1 bg-cyan-400 border-2 border-black text-black font-bold shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] hover:shadow-[3px_3px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[-1px] hover:translate-y-[-1px] active:shadow-[1px_1px_0px_0px_rgba(0,0,0,1)] active:translate-x-[1px] active:translate-y-[1px] transition-all text-xs disabled:opacity-50 disabled:cursor-not-allowed" disabled>
46+
Copy
3947
</button>
4048
</div>
41-
42-
<!-- Card content -->
43-
<div id="auto-share-panel" class="bg-pink-400 border-2 border-black shadow-[3px_3px_0px_0px_rgba(0,0,0,1)] p-3 relative z-0" style="margin-top: -2px;">
44-
<div class="flex gap-2 items-center">
45-
<input id="share-link-input" type="text" readonly class="px-3 py-1 bg-white border-2 border-black text-black font-mono text-xs shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] focus:outline-none" style="min-width: 450px; cursor: text;" value="Waiting for first save...">
46-
<button id="copy-share-link" class="px-3 py-1 bg-cyan-400 border-2 border-black text-black font-bold shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] hover:shadow-[3px_3px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[-1px] hover:translate-y-[-1px] active:shadow-[1px_1px_0px_0px_rgba(0,0,0,1)] active:translate-x-[1px] active:translate-y-[1px] transition-all text-xs disabled:opacity-50 disabled:cursor-not-allowed" disabled>
47-
Copy
48-
</button>
49-
</div>
50-
</div>
5149
</div>
5250
</div>
5351
</div>

0 commit comments

Comments
 (0)