Skip to content

Commit dfdd880

Browse files
committed
fix: adjust timer button styles and reposition adjustment buttons in HTML
1 parent 58e76a2 commit dfdd880

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

src/index.html

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,13 @@
9696
<!-- Status Label -->
9797
<div style="text-align:center; position: relative">
9898
<div class="timer-status-container">
99-
<button class="timer-adjust-btn" id="timer-minus-btn" title="Subtract 5 minutes">
100-
<span>-5</span>
101-
</button>
99+
102100
<div class="timer-status clickable" id="timer-status">
103101
<i id="status-icon" class="ri-brain-line"></i>
104102
<span id="status-text">Focus</span>
105103
<i class="ri-arrow-down-s-line tag-dropdown-arrow" id="tag-dropdown-arrow"></i>
106104
</div>
107-
<button class="timer-adjust-btn" id="timer-plus-btn" title="Add 5 minutes">
108-
<span>+5</span>
109-
</button>
105+
110106
</div>
111107
<!-- Tag Dropdown Menu -->
112108
<div class="tag-dropdown-menu" id="tag-dropdown-menu">
@@ -189,6 +185,7 @@
189185

190186
<!-- Settings Indicators -->
191187
<div class="settings-indicators">
188+
192189
<!-- Smart Pause Indicator -->
193190
<div class="smart-pause-container">
194191
<span id="smart-pause-countdown" class="countdown-number" style="display: none;"></span>
@@ -203,6 +200,17 @@
203200
<!-- Continuous Session Indicator -->
204201
<i id="continuous-session-indicator" class="ri-repeat-line"
205202
data-tooltip="Continuous Sessions: Click to toggle continuous mode"></i>
203+
204+
205+
<!-- Timer Adjustment Buttons -->
206+
<button class="timer-adjust-btn" id="timer-minus-btn" title="Subtract 5 minutes">
207+
<span>-5</span>
208+
</button>
209+
<!-- Timer Adjustment Buttons -->
210+
<button class="timer-adjust-btn" id="timer-plus-btn" title="Add 5 minutes">
211+
<span>+5</span>
212+
</button>
213+
206214
</div>
207215
</div>
208216

@@ -363,11 +371,17 @@ <h3>Session History</h3>
363371
</select>
364372
<button id="export-sessions-btn" class="export-btn" title="Export to Excel">
365373
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
366-
<path d="M14 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V8L14 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
367-
<polyline points="14,2 14,8 20,8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
368-
<line x1="16" y1="13" x2="8" y2="13" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
369-
<line x1="16" y1="17" x2="8" y2="17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
370-
<polyline points="10,9 9,9 8,9" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
374+
<path
375+
d="M14 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V8L14 2Z"
376+
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
377+
<polyline points="14,2 14,8 20,8" stroke="currentColor" stroke-width="2" stroke-linecap="round"
378+
stroke-linejoin="round" />
379+
<line x1="16" y1="13" x2="8" y2="13" stroke="currentColor" stroke-width="2" stroke-linecap="round"
380+
stroke-linejoin="round" />
381+
<line x1="16" y1="17" x2="8" y2="17" stroke="currentColor" stroke-width="2" stroke-linecap="round"
382+
stroke-linejoin="round" />
383+
<polyline points="10,9 9,9 8,9" stroke="currentColor" stroke-width="2" stroke-linecap="round"
384+
stroke-linejoin="round" />
371385
</svg>
372386
Export
373387
</button>

src/styles/timer.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
display: flex;
2020
align-items: center;
2121
justify-content: center;
22-
width: 32px;
2322
height: 32px;
2423
border: none;
2524
background-color: transparent;

src/utils/theme-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ThemeLoader {
3939
// that gets updated by the build process or manually maintained
4040

4141
// This could be enhanced to use a build-time script that generates this list
42-
const knownThemes = [
42+
const knownThemes = [
4343
'espresso.css',
4444
'pipboy.css',
4545
'pommodore64.css'

0 commit comments

Comments
 (0)