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]);
|
||||
|
||||
useEffect(async () => {
|
||||
const configFileUrl = `${window.location.href}/config.json`;
|
||||
const link = window.location.href;
|
||||
const configFileUrl = `${link}${link[link.length - 1] === '/' ? '' : '/'}config.json`;
|
||||
try {
|
||||
const result = await (await fetch(configFileUrl, { method: 'GET' })).json();
|
||||
const selectedHs = result?.defaultHomeserver;
|
||||
|
|
|
@ -56,9 +56,10 @@
|
|||
.homeserver-form {
|
||||
display: flex;
|
||||
margin-bottom: var(--sp-extra-tight);
|
||||
line-height: 0;
|
||||
align-items: flex-end;
|
||||
& > .input-container {
|
||||
flex: 1;
|
||||
line-height: 0;
|
||||
& .input {
|
||||
border-right: unset;
|
||||
border-radius: var(--bo-radius) 0 0 var(--bo-radius);
|
||||
|
@ -67,7 +68,6 @@
|
|||
}
|
||||
& .ic-btn {
|
||||
height: 46px;
|
||||
align-self: flex-end;
|
||||
border: 1px solid var(--bg-surface-border);
|
||||
border-radius: 0 var(--bo-radius) var(--bo-radius) 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue