|
10 | 10 | <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"> |
11 | 11 | Claude code |
12 | 12 | </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) |
15 | 15 | </button> |
16 | 16 | </div> |
17 | 17 |
|
|
44 | 44 |
|
45 | 45 | workspaceTabs.forEach(tab => { |
46 | 46 | tab.addEventListener('click', function() { |
| 47 | + // Skip if tab is disabled |
| 48 | + if (this.disabled) return; |
| 49 | + |
47 | 50 | // Remove active state from all tabs |
48 | 51 | 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 | + } |
53 | 58 | }); |
54 | 59 |
|
55 | 60 | // Add active state to clicked tab |
|
0 commit comments