style: match the user select to the panel buttons

This commit is contained in:
redtea committed 2026-10-13 01:43:24 +03:00
1 parent 3dde07f403
commit 93673d3570
2 files changed
+13 -3

No files matched your search

+11 -1
View File
@@ -34,10 +34,20 @@ header.topbar nav a:hover { color: var(--text); }
h1 { font-size: 22px; margin: 0 0 18px; }
h2 { font-size: 17px; margin: 0 0 14px; }
label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 13px; }
input[type=text], input[type=password], select {
input[type=text], input[type=password] {
width: 100%; padding: 10px 12px; border-radius: 8px;
border: 1px solid var(--border); background: #0c0f13; color: var(--text); font-size: 14px;
}
/* Sized and shaped like .btn.ghost so it lines up with the buttons next to it. */
select {
-webkit-appearance: none; appearance: none; cursor: pointer;
min-width: 180px; padding: 10px 38px 10px 14px; border-radius: 8px;
border: 1px solid var(--border); color: var(--text);
font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5;
background: #0c0f13 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
select:hover, select:focus { border-color: var(--accent); outline: none; }
select:disabled, button:disabled { opacity: .5; cursor: not-allowed; }
button, .btn {
display: inline-block; cursor: pointer; border: 0; border-radius: 8px;
padding: 10px 16px; font-size: 14px; font-weight: 500;
+2 -2
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Изменить машину — LPRA</title>
<link rel="stylesheet" href="/static/app.css">
<link rel="stylesheet" href="/static/app.css?v={{.ServerVersion}}-2">
</head>
<body>
<header class="topbar">
@@ -39,7 +39,7 @@
{{if .Users}}
<form method="post" action="/agents/{{.Agent.ID}}/user" class="row">
<input type="hidden" name="csrf" value="{{.CSRF}}">
<select name="user" style="max-width:360px" {{if not .Users.CanSwitch}}disabled{{end}}>
<select name="user" {{if not .Users.CanSwitch}}disabled{{end}}>
{{range .Users.Users}}<option value="{{.}}" {{if eq . $.Agent.TerminalUser}}selected{{end}}>{{.}}</option>{{end}}
</select>
<button type="submit" {{if not .Users.CanSwitch}}disabled{{end}}>Сохранить</button>