fix alignment on hsInput in safari
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
364def188a
commit
916d564f82
2 changed files with 4 additions and 3 deletions
|
@ -87,7 +87,8 @@ function Homeserver({ onChange }) {
|
||||||
}, [hs]);
|
}, [hs]);
|
||||||
|
|
||||||
useEffect(async () => {
|
useEffect(async () => {
|
||||||
const configFileUrl = `${window.location.href}/config.json`;
|
const link = window.location.href;
|
||||||
|
const configFileUrl = `${link}${link[link.length - 1] === '/' ? '' : '/'}config.json`;
|
||||||
try {
|
try {
|
||||||
const result = await (await fetch(configFileUrl, { method: 'GET' })).json();
|
const result = await (await fetch(configFileUrl, { method: 'GET' })).json();
|
||||||
const selectedHs = result?.defaultHomeserver;
|
const selectedHs = result?.defaultHomeserver;
|
||||||
|
|
|
@ -56,9 +56,10 @@
|
||||||
.homeserver-form {
|
.homeserver-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: var(--sp-extra-tight);
|
margin-bottom: var(--sp-extra-tight);
|
||||||
line-height: 0;
|
align-items: flex-end;
|
||||||
& > .input-container {
|
& > .input-container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
line-height: 0;
|
||||||
& .input {
|
& .input {
|
||||||
border-right: unset;
|
border-right: unset;
|
||||||
border-radius: var(--bo-radius) 0 0 var(--bo-radius);
|
border-radius: var(--bo-radius) 0 0 var(--bo-radius);
|
||||||
|
@ -67,7 +68,6 @@
|
||||||
}
|
}
|
||||||
& .ic-btn {
|
& .ic-btn {
|
||||||
height: 46px;
|
height: 46px;
|
||||||
align-self: flex-end;
|
|
||||||
border: 1px solid var(--bg-surface-border);
|
border: 1px solid var(--bg-surface-border);
|
||||||
border-radius: 0 var(--bo-radius) var(--bo-radius) 0;
|
border-radius: 0 var(--bo-radius) var(--bo-radius) 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue