mirror of
https://github.com/idanoo/autobrr
synced 2025-07-24 01:09:13 +00:00
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:
parent
2c46993264
commit
7f06a4c707
4 changed files with 13 additions and 55 deletions
|
@ -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(' ')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue