Signed-off-by: Ajay Bura <ajbura@gmail.com>
}, [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;
.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);
}
& .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;
}