Skip to content

Commit 057f8c2

Browse files
randomize button editing
1 parent c6c11e1 commit 057f8c2

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

app/templates/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ <h3>Create New Forwarder</h3>
2020
<label for="address">Email Address</label>
2121
<div class="input-group">
2222
<input type="text" id="alias" name="alias" required pattern="[-a-zA-Z0-9._]+" title="Alphanumeric characters, dots, underscores, and hyphens only">
23-
<button type="button" id="randomAliasBtn" title="Generate random alias" style="margin-left:4px; font-size:1.2em;">🎲</button>
2423
<span class="input-addon">@{{ current_user.da_domain }}</span>
24+
<button type="button" id="randomAliasBtn" title="Generate random alias" class="dice-btn">🎲</button>
2525
</div>
2626
</div>
2727

static/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,3 +673,19 @@ input.error {
673673
display: flex !important; /* Ensure it's always visible on desktop */
674674
}
675675
}
676+
677+
/* Dice icon button styling */
678+
.dice-btn {
679+
background: none;
680+
border: none;
681+
padding: 0 0.5em;
682+
margin-left: 0.25em;
683+
font-size: 1.3em;
684+
cursor: pointer;
685+
color: #888;
686+
transition: color 0.2s;
687+
line-height: 1;
688+
}
689+
.dice-btn:hover {
690+
color: #007bff;
691+
}

0 commit comments

Comments
 (0)