Skip to content

Commit fae9ff8

Browse files
committed
fix: simplify auth input styling, remove toggle button
1 parent 5932c47 commit fae9ff8

1 file changed

Lines changed: 1 addition & 34 deletions

File tree

web2api/templates/index.html

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -128,35 +128,14 @@
128128

129129
.auth-input-wrap {
130130
flex: 1 1 320px;
131-
position: relative;
132-
display: flex;
133-
align-items: center;
134131
}
135132

136133
.auth-input-wrap .filter {
137134
width: 100%;
138-
padding: 0.24rem 2.4rem 0.24rem 0.48rem;
135+
padding: 0.24rem 0.48rem;
139136
font-size: 0.74rem;
140137
}
141138

142-
.auth-toggle {
143-
position: absolute;
144-
right: 0.4rem;
145-
background: none;
146-
border: none;
147-
cursor: pointer;
148-
color: var(--ink-dim);
149-
font-size: 0.82rem;
150-
padding: 0.1rem;
151-
line-height: 1;
152-
opacity: 0.6;
153-
transition: opacity 150ms;
154-
}
155-
156-
.auth-toggle:hover {
157-
opacity: 1;
158-
}
159-
160139
.auth-status-dot {
161140
display: inline-flex;
162141
align-items: center;
@@ -705,7 +684,6 @@ <h1>Web2API Recipes</h1>
705684
autocomplete="current-password"
706685
spellcheck="false"
707686
/>
708-
<button class="auth-toggle" id="authToggleVis" type="button" title="Show/hide token">👁</button>
709687
</div>
710688
<button class="manager-btn" id="authSave" type="button">Save</button>
711689
<button class="manager-btn" id="authClear" type="button">Clear</button>
@@ -1691,17 +1669,6 @@ <h2>MCP Tool Bridge</h2>
16911669
mcpReload.addEventListener("click", () => void loadMcpTools());
16921670
}
16931671

1694-
// Show/hide token toggle
1695-
const authToggle = document.getElementById("authToggleVis");
1696-
if (authToggle && authTokenInput) {
1697-
authToggle.addEventListener("click", () => {
1698-
const isPassword = authTokenInput.type === "password";
1699-
authTokenInput.type = isPassword ? "text" : "password";
1700-
authToggle.textContent = isPassword ? "🙈" : "👁";
1701-
authToggle.title = isPassword ? "Hide token" : "Show token";
1702-
});
1703-
}
1704-
17051672
// Auth status dot
17061673
const authDot = document.getElementById("authDot");
17071674
function setAuthDot(state, label) {

0 commit comments

Comments
 (0)