Skip to content

Commit 3e1fb8c

Browse files
authored
Merge pull request #30 from JOHLC/copilot/obscure-webhook-id-input
feat: mask webhook ID input field with proper styling
2 parents f3ceecf + eb6a519 commit 3e1fb8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package/options.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2>Send to Home Assistant</h2>
2323
<label for="sslToggle"><input type="checkbox" id="sslToggle" checked> Use SSL (https)</label>
2424
<div class="webhook-row">
2525
<label for="webhookId"><a href="https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger" target="_blank" rel="noopener noreferrer" class="link-blue">Webhook ID</a></label>
26-
<input type="text" id="webhookId" placeholder="xxxxxx-xxxxxxxxxxxx">
26+
<input type="password" id="webhookId" placeholder="xxxxxx-xxxxxxxxxxxx">
2727
</div>
2828
<label for="userName">User <span class="label-note">(optional)</span></label>
2929
<input type="text" id="userName" placeholder="Your name (optional)" maxlength="32">

package/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ label {
161161
width: auto;
162162
align-self: center;
163163
}
164-
input[type="text"] {
164+
input[type="text"], input[type="password"] {
165165
width: 100%;
166166
padding: 0.7em 1em;
167167
font-size: 1.08em;
@@ -191,7 +191,7 @@ input[type="text"] {
191191
transition: border 0.2s, box-shadow 0.2s;
192192
box-shadow: 0 1.5px 8px #00b4fc22;
193193
}
194-
input[type="text"]:focus {
194+
input[type="text"]:focus, input[type="password"]:focus {
195195
border: 2.5px solid #00b4fc;
196196
outline: none;
197197
box-shadow: 0 2px 12px #00b4fc44;

0 commit comments

Comments
 (0)