Skip to content

Commit 08f71d4

Browse files
committed
Button layout and size changes
1 parent 3673e64 commit 08f71d4

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed

src/components/GitSequencer.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@
322322
cursor: pointer;
323323
border-radius: 4px;
324324
transition: all 0.15s;
325+
display: inline-flex;
326+
align-items: center;
327+
justify-content: center;
328+
gap: 0.4rem;
325329
}
326330

327331
.ctrl-btn:hover:not(:disabled) {

src/components/GitSequencer.jsx

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,26 +658,56 @@ const GitSequencer = () => {
658658
onClick={handleTogglePlay}
659659
disabled={!data || isAnimating || error || isRecording}
660660
>
661-
{isPlaying && !isRecording ? '■ Stop' : '▶ Play'}
661+
{isPlaying && !isRecording ? (
662+
<>
663+
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
664+
<rect x="6" y="4" width="4" height="16"></rect>
665+
<rect x="14" y="4" width="4" height="16"></rect>
666+
</svg>
667+
<span>Stop</span>
668+
</>
669+
) : (
670+
<>
671+
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
672+
<polygon points="5 3 19 12 5 21 5 3"></polygon>
673+
</svg>
674+
<span>Play</span>
675+
</>
676+
)}
662677
</button>
663678
<button
664679
className={`ctrl-btn ${isRecording ? 'recording' : ''}`}
665680
onClick={handleExport}
666681
disabled={!data || isAnimating || error}
667682
>
668-
{isRecording ? '● Stop' : '○ Record'}
683+
{isRecording ? (
684+
<>
685+
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
686+
<circle cx="12" cy="12" r="8"></circle>
687+
<rect x="9" y="9" width="6" height="6" rx="1"></rect>
688+
</svg>
689+
<span>Stop</span>
690+
</>
691+
) : (
692+
<>
693+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
694+
<circle cx="12" cy="12" r="8"></circle>
695+
</svg>
696+
<span>Record</span>
697+
</>
698+
)}
669699
</button>
670700
<button
671701
className="ctrl-btn"
672702
onClick={handleShare}
673703
disabled={!data || isAnimating || error}
674704
title="Copy link to clipboard"
675705
>
676-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" style={{ marginRight: '6px', verticalAlign: 'text-bottom' }}>
706+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
677707
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
678708
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
679709
</svg>
680-
Copy
710+
<span>Copy</span>
681711
</button>
682712
</div>
683713

0 commit comments

Comments
 (0)