mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 03:12:25 -05:00
[feature] Add domain permission drafts and excludes (#3547)
* [feature] Add domain permission drafts and excludes * fix typescript complaining * lint * make filenames more consistent * test own domain excluded
This commit is contained in:
parent
c2029df9bc
commit
301543616b
69 changed files with 5664 additions and 264 deletions
|
|
@ -110,12 +110,19 @@ export function MenuItem(props: PropsWithChildren<MenuItemProps>) {
|
|||
if (topLevel) {
|
||||
classNames.push("category", "top-level");
|
||||
} else {
|
||||
if (thisLevel === 1 && hasChildren) {
|
||||
classNames.push("category", "expanding");
|
||||
} else if (thisLevel === 1 && !hasChildren) {
|
||||
classNames.push("view", "expanding");
|
||||
} else if (thisLevel === 2) {
|
||||
classNames.push("view", "nested");
|
||||
switch (true) {
|
||||
case thisLevel === 1 && hasChildren:
|
||||
classNames.push("category", "expanding");
|
||||
break;
|
||||
case thisLevel === 1 && !hasChildren:
|
||||
classNames.push("view", "expanding");
|
||||
break;
|
||||
case thisLevel >= 2 && hasChildren:
|
||||
classNames.push("nested", "category");
|
||||
break;
|
||||
case thisLevel >= 2 && !hasChildren:
|
||||
classNames.push("nested", "view");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue