Skip to content

Commit b3bd134

Browse files
Minor changes
1 parent 5f8e7c0 commit b3bd134

7 files changed

Lines changed: 17 additions & 10 deletions

File tree

App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3304,7 +3304,7 @@ Include the corrected full and detailed code`;
33043304
{/* Code Editor layer — always mounted so Monaco stays alive */}
33053305
<div
33063306
style={{ display: (activeTabGroup === 'file' && activeFileId) ? 'block' : 'none' }}
3307-
className="absolute inset-0"
3307+
className="absolute inset-0 "
33083308
>
33093309
<CodeEditor
33103310
code={activeContent}

components/Deploy/WalletConnection.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const WalletConnectionComponent: React.FC<WalletConnectionProps> = ({
151151
<button
152152
onClick={() => handleConnect('xverse')}
153153
disabled={connecting}
154-
className="relative flex flex-col items-center justify-center p-4 border border-white/5 bg-white/5 hover:bg-white/10 hover:border-white/10 transition-all group disabled:opacity-50 disabled:cursor-not-allowed"
154+
className="relative flex flex-col items-center justify-center p-4 border border-zinc-400/20 bg-zinc-400/20 hover:bg-white/10 hover:border-white/10 transition-all group disabled:opacity-50 disabled:cursor-not-allowed"
155155
>
156156
{/* Unstable Badge (Top Right) */}
157157
<span className="absolute -top-2 -right-2 bg-red-400 text-black text-[10px] px-2 py-0.5 rounded-full font-bold shadow-sm z-10">
@@ -169,7 +169,7 @@ const WalletConnectionComponent: React.FC<WalletConnectionProps> = ({
169169
)}
170170
</button>
171171
) : (
172-
<div className="flex flex-col items-center justify-center p-4 border border-white/5 bg-white/5">
172+
<div className="flex flex-col items-center justify-center p-4 border border-zinc-400/20 bg-zinc-400/20">
173173
<img src="/xverse.png" alt="Xverse" className="h-10 w-10 mb-3 opacity-50 grayscale" />
174174
<span className="text-xs font-bold text-caspier-muted mb-3">Xverse</span>
175175
<a
@@ -189,7 +189,7 @@ const WalletConnectionComponent: React.FC<WalletConnectionProps> = ({
189189
<button
190190
onClick={() => handleConnect('leather')}
191191
disabled={connecting}
192-
className="relative flex flex-col items-center justify-center p-4 border border-white/5 bg-white/5 hover:bg-white/10 hover:border-white/10 transition-all group disabled:opacity-50 disabled:cursor-not-allowed"
192+
className="relative flex flex-col items-center justify-center p-4 border border-zinc-400/20 bg-zinc-400/20 hover:bg-white/10 hover:border-white/10 transition-all group disabled:opacity-50 disabled:cursor-not-allowed"
193193
>
194194
<span className="absolute -top-2 -right-2 bg-blue-400 text-black text-[10px] px-2 py-0.5 rounded-full font-bold shadow-sm">
195195
stable
@@ -203,7 +203,7 @@ const WalletConnectionComponent: React.FC<WalletConnectionProps> = ({
203203
)}
204204
</button>
205205
) : (
206-
<div className="flex flex-col items-center justify-center p-4 border border-white/5 bg-white/5">
206+
<div className="flex flex-col items-center justify-center p-4 border border-zinc-400/20 bg-zinc-400/20">
207207
<img src="/leather.svg" alt="Leather" className="h-10 w-10 mb-3 opacity-50 grayscale" />
208208
<span className="text-xs font-bold text-caspier-muted mb-3">Leather</span>
209209
<a

components/Layout/EditorTabs.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ const EditorTabs: React.FC<EditorTabsProps> = ({
237237
</span>
238238
) : file.name}
239239
</span>
240+
{
241+
isDirty && (
242+
<div className="w-2 h-2 rounded-full bg-caspier-muted scale-75" />
243+
)
244+
}
240245

241246
<div className="flex items-center justify-center w-4">
242247
{isDirty && !isActive && (

components/Layout/SidebarLeft.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ const SidebarLeft: React.FC<SidebarLeftProps> = ({
882882

883883
{/* Dropdown Menu */}
884884
{isDropdownOpen && (
885-
<div className="absolute left-3 right-3 top-[calc(100%-8px)] z-50 mt-1 bg-caspier-dark border-2 border-caspier-border rounded-xl shadow-2xl overflow-hidden animate-in fade-in slide-in-from-top-2 duration-200">
885+
<div className="absolute left-3 right-3 top-[calc(100%-8px)] z-50 mt-1 bg-caspier-dark border-2 border-caspier-border shadow-2xl overflow-hidden animate-in fade-in slide-in-from-top-2 duration-200">
886886
<div className="p-1.5 space-y-0.5">
887887
<DropdownItem
888888
icon={<FilePlusIcon className="w-3.5 h-3.5" />}

components/Layout/TerminalPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,11 @@ const TerminalPanel: React.FC<TerminalPanelProps> = ({
372372
useEffect(() => {
373373
if (pendingCommand && pendingCommand.timestamp > lastCommandTimestamp.current) {
374374
lastCommandTimestamp.current = pendingCommand.timestamp;
375-
375+
376376
// If the command was sent to "temp", it means a new terminal was just created
377377
// for it, and it should be the active one.
378378
const targetId = pendingCommand.terminalId === 'temp' ? activeTerminalId : pendingCommand.terminalId;
379-
379+
380380
const data = xtermRefs.current[targetId];
381381
if (data && data.inputWriter) {
382382
data.inputWriter.write(pendingCommand.command + '\r');

components/UI/HomeTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const FeatureCard: React.FC<FeatureCardProps & { theme: 'dark' | 'light' }> = ({
123123

124124
<button
125125
onClick={onClick}
126-
className={`mt-auto w-full py-3 ${isLight ? 'bg-slate-50 hover:bg-blue-500 text-slate-600 hover:text-white' : 'bg-[#232730] hover:bg-blue-500 text-slate-300 hover:text-white'} rounded-xl text-sm font-semibold transition-all duration-300 flex items-center justify-center gap-2 group/btn`}
126+
className={`mt-auto w-full py-3 ${isLight ? 'bg-slate-400/20 border border-slate-400 hover:bg-blue-500 text-slate-600 hover:text-white' : 'bg-[#232730] hover:bg-blue-500 text-slate-300 hover:text-white'} text-sm font-semibold transition-all duration-300 flex items-center justify-center gap-2 group/btn`}
127127
>
128128
{buttonText}
129129
<ChevronRightIcon className="w-4 h-4 group-hover/btn:translate-x-1 transition-transform" />

components/UI/NewProjectTab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { GitHubTemplateService, GitHubTemplate } from '../../services/githubTemp
55
import { HiroTemplateService, HiroTemplate, HIRO_TEMPLATES } from '../../services/hiroTemplates';
66
import { FileNode } from '../../types';
77
import { renderMarkdown } from '../../utils/markdownUtils';
8+
import { GitPullRequest } from 'lucide-react';
89

910
interface NewProjectTabProps {
1011
onLoadTemplate: (nodes: FileNode[], templateName?: string, type?: string) => void;
@@ -154,9 +155,10 @@ export const NewProjectTab: React.FC<NewProjectTabProps> = ({
154155
<div>
155156
<h2 className="text-2xl font-black tracking-widest uppercase ">New Project</h2>
156157
<p className="text-caspier-muted text-[10px] mt-2 font-black uppercase tracking-[0.2em]">Select your starting point</p>
158+
<a href='https://github.com/LabSTX/LabSTX-Workshops/issues' target='_blank' onClick={() => { }}> <button className=" bg-caspier-black hover:underline hover:text-blue-500 rounded-full text-caspier-muted transition-all text-caspier-muted text-[10px] mt-2 font-black px-2 py-1 bg-caspier-muted/20 flex items-center " > <GitPullRequest className="w-4 h-4 mr-1" /> Request a Template</button></a>
159+
157160
</div>
158161

159-
<a href='https://github.com/LabSTX/LabSTX-Workshops/issues' target='_blank' onClick={() => { }}> <button className=" bg-caspier-black hover:underline hover:text-blue-500 rounded-full text-caspier-muted transition-all text-caspier-muted text-[10px] mt-2 font-black uppercase tracking-[0.2em]" > Request a Template</button></a>
160162
<button
161163
onClick={onClose}
162164
className="p-2 hover:bg-labstx-orange hover:text-white rounded-full text-caspier-muted transition-all border-2 border-transparent hover:border-white/20"

0 commit comments

Comments
 (0)