mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 16:23:41 +01:00
[bugfix/frontend] Small safari + gnome web fixes (#3219)
* [bugfix/frontend] Small safari + gnome web fixes * wee * update comment
This commit is contained in:
parent
9b2f14b131
commit
ffcf6e73f7
@ -178,6 +178,16 @@ input, select, textarea, .input {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
/*
|
||||||
|
By default this looks awful on Gnome
|
||||||
|
Web so restyle a bit to try to make
|
||||||
|
it consistent with firefox + chrome.
|
||||||
|
*/
|
||||||
|
appearance: none;
|
||||||
|
line-height: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Squeeze emojis so they fit inline in text.
|
Squeeze emojis so they fit inline in text.
|
||||||
*/
|
*/
|
||||||
|
@ -308,6 +308,10 @@ main {
|
|||||||
"eye sensitive ."
|
"eye sensitive ."
|
||||||
". sensitive .";
|
". sensitive .";
|
||||||
|
|
||||||
|
&::-webkit-details-marker {
|
||||||
|
display: none; /* Safari */
|
||||||
|
}
|
||||||
|
|
||||||
.eye.button {
|
.eye.button {
|
||||||
grid-area: eye;
|
grid-area: eye;
|
||||||
align-self: start;
|
align-self: start;
|
||||||
|
@ -170,19 +170,21 @@ export function Select({
|
|||||||
<label>
|
<label>
|
||||||
{label}
|
{label}
|
||||||
{children}
|
{children}
|
||||||
<select
|
<div className="select-wrapper">
|
||||||
onChange={(e: React.ChangeEvent<HTMLSelectElement>) => {
|
<select
|
||||||
onChange(e);
|
onChange={(e: React.ChangeEvent<HTMLSelectElement>) => {
|
||||||
if (onChangeCallback !== undefined) {
|
onChange(e);
|
||||||
onChangeCallback(e.target.value);
|
if (onChangeCallback !== undefined) {
|
||||||
}
|
onChangeCallback(e.target.value);
|
||||||
}}
|
}
|
||||||
value={value}
|
}}
|
||||||
ref={ref as RefObject<HTMLSelectElement>}
|
value={value}
|
||||||
{...props}
|
ref={ref as RefObject<HTMLSelectElement>}
|
||||||
>
|
{...props}
|
||||||
{options}
|
>
|
||||||
</select>
|
{options}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -374,6 +374,21 @@ section.with-sidebar > form {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.4rem;
|
gap: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.select-wrapper {
|
||||||
|
/*
|
||||||
|
Selects are normalized in base.css to not have a down arrow on the side.
|
||||||
|
Overcome this on settings panel forms by replacing the down arrow.
|
||||||
|
*/
|
||||||
|
position: relative;
|
||||||
|
&::after {
|
||||||
|
content: "▼";
|
||||||
|
font-size: 0.8rem;
|
||||||
|
top: 0.3rem;
|
||||||
|
right: 1rem;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-flex {
|
.form-flex {
|
||||||
|
Loading…
Reference in New Issue
Block a user