feat(web): improve filters nav mobile (#272)

fix(components/Debug): added overflow handling for smaller screens (or for long lines)
feat(settings/SidebarNav): shortened vertical padding from 24px to 8px
fix(filters/FilterDetails): fixed FilterDetails component to behave properly with mobile devices and made it consistent with the desktop UI
chore: cleaned up unnecessary code

Co-authored-by: anonymous <anonymous>
This commit is contained in:
stacksmash76 2022-05-15 14:07:28 +02:00 committed by GitHub
parent 2c46993264
commit 7f06a4c707
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 55 deletions

View file

@ -31,24 +31,6 @@ export function sseBaseUrl() {
return `${window.location.origin}${baseUrl()}`;
}
export function buildPath(...args: string[]): string {
const [first] = args;
const firstTrimmed = first.trim();
const result = args
.map((part) => part.trim())
.map((part, i) => {
if (i === 0) {
return part.replace(/[/]*$/g, '');
} else {
return part.replace(/(^[/]*|[/]*$)/g, '');
}
})
.filter((x) => x.length)
.join('/');
return firstTrimmed === '/' ? `/${result}` : result;
}
export function classNames(...classes: string[]) {
return classes.filter(Boolean).join(' ')
}