Skip to content

Commit 08287f9

Browse files
committed
disable cursor for now
1 parent 8009ed3 commit 08287f9

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

app/templates/components/workspace.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<button id="tab-claude" class="tab-button active px-4 py-2 bg-cyan-400 border-2 border-black border-b-0 text-black font-bold shadow-[2px_0px_0px_0px_rgba(0,0,0,1)] hover:shadow-[4px_0px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[-1px] hover:translate-y-[-1px] active:shadow-[1px_0px_0px_0px_rgba(0,0,0,1)] active:translate-x-[1px] active:translate-y-[1px] transition-all text-sm relative z-10">
1111
Claude code
1212
</button>
13-
<button id="tab-cursor" class="tab-button px-4 py-2 bg-gray-100 border-2 border-gray-400 border-b-0 text-gray-700 font-medium shadow-[1px_0px_0px_0px_rgba(0,0,0,0.3)] hover:shadow-[2px_0px_0px_0px_rgba(0,0,0,0.3)] hover:translate-x-[-1px] hover:translate-y-[-1px] active:shadow-[0px_0px_0px_0px_rgba(0,0,0,0.3)] active:translate-x-[1px] active:translate-y-[1px] transition-all text-sm relative z-5">
14-
Cursor/others..
13+
<button id="tab-cursor" class="tab-button px-4 py-2 bg-gray-100 border-2 border-gray-400 border-b-0 text-gray-500 font-medium shadow-[1px_0px_0px_0px_rgba(0,0,0,0.3)] cursor-not-allowed opacity-50 text-sm relative z-5" disabled>
14+
Cursor/others.. (coming soon)
1515
</button>
1616
</div>
1717

@@ -44,12 +44,17 @@
4444

4545
workspaceTabs.forEach(tab => {
4646
tab.addEventListener('click', function() {
47+
// Skip if tab is disabled
48+
if (this.disabled) return;
49+
4750
// Remove active state from all tabs
4851
workspaceTabs.forEach(t => {
49-
t.classList.remove('active', 'bg-cyan-400', 'border-black', 'text-black', 'font-bold', 'z-10');
50-
t.classList.add('bg-gray-100', 'border-gray-400', 'text-gray-700', 'font-medium', 'z-5');
51-
t.classList.remove('shadow-[2px_0px_0px_0px_rgba(0,0,0,1)]');
52-
t.classList.add('shadow-[1px_0px_0px_0px_rgba(0,0,0,0.3)]');
52+
if (!t.disabled) {
53+
t.classList.remove('active', 'bg-cyan-400', 'border-black', 'text-black', 'font-bold', 'z-10');
54+
t.classList.add('bg-gray-100', 'border-gray-400', 'text-gray-700', 'font-medium', 'z-5');
55+
t.classList.remove('shadow-[2px_0px_0px_0px_rgba(0,0,0,1)]');
56+
t.classList.add('shadow-[1px_0px_0px_0px_rgba(0,0,0,0.3)]');
57+
}
5358
});
5459

5560
// Add active state to clicked tab

0 commit comments

Comments
 (0)