mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
Even more changes
This commit is contained in:
parent
f48a76e373
commit
7d2993c203
2 changed files with 11 additions and 11 deletions
|
@ -72,14 +72,6 @@ div.right-panel-content.user {
|
|||
}
|
||||
}
|
||||
|
||||
input.text-input {
|
||||
border: 0;
|
||||
padding: 0; /* Necessary to prevent alignment issues with other cells */
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid var(--blockquote-border-color);
|
||||
}
|
||||
|
||||
div.displayname {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
|
@ -103,6 +95,14 @@ div.right-panel-content.user {
|
|||
display: grid;
|
||||
gap: 0.25rem;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
|
||||
> input {
|
||||
border: 0;
|
||||
padding: 0; /* Necessary to prevent alignment issues with other cells */
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid var(--blockquote-border-color);
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
|
|
|
@ -65,15 +65,15 @@ const SetTimeZoneElement = ({ tz, client, refreshProfile }: SetTimezoneProps) =>
|
|||
)
|
||||
}
|
||||
|
||||
const defaultValue = tz || getCurrentTimezone()
|
||||
return <>
|
||||
<label htmlFor="userprofile-timezone-input">Set time zone:</label>
|
||||
<input
|
||||
list="timezones"
|
||||
className="text-input"
|
||||
id="userprofile-timezone-input"
|
||||
defaultValue={tz || getCurrentTimezone()}
|
||||
defaultValue={defaultValue}
|
||||
onKeyDown={evt => evt.key === "Enter" && saveTz(evt.currentTarget.value)}
|
||||
onBlur={evt => evt.currentTarget.value !== tz && saveTz(evt.currentTarget.value)}
|
||||
onBlur={evt => evt.currentTarget.value !== defaultValue && saveTz(evt.currentTarget.value)}
|
||||
/>
|
||||
<datalist id="timezones">
|
||||
{zones.map((zone) => <option key={zone} value={zone} />)}
|
||||
|
|
Loading…
Add table
Reference in a new issue