Lilly
(Lillian )
20 בינואר, 2026, 3:22am
1
Install this theme component
Overview
This simple theme component automatically indents all subcategories in the sidebar - works in desktop, tablet and mobile viewport sizes.
There is one setting to change the indent size - the default is 1em, minimum 0.5em and maximum 3em.
Settings:
Screenshot of example result in sidebar:
Notes
This theme component is only intended for single level subcategories. If your forum has sub-subcategories enabled, this component will probably break, or at least not look very good in your sidebar.
This component replaces the now deprecated Indented / Nested Sidebar Categories or Subcategories .
Check out my other Discourse stuff
21 לייקים
ishua_wang
(ishua wang)
2 בפברואר, 2026, 10:29am
2
nice job! It will be wonderful if it can fold or unfold for the parent categories. Is it possible?
לייק 1
Lilly
(Lillian )
2 בפברואר, 2026, 2:38pm
3
no - sorry, but i have no plans to add more options to this component.
לייק 1
nathank
(Nathan Kershaw)
6 בפברואר, 2026, 10:44pm
4
Nice work Lilly - delightfully simple and effective. A marked improvement!!
Also, I love the clear admin notice about it.
2 לייקים
Neil_Evans
(Neil Evans)
18 בפברואר, 2026, 12:45pm
5
It would be useful to have the option to indent on mobile too
nathank
(Nathan Kershaw)
18 בפברואר, 2026, 2:54pm
6
I agree - and hadn’t noticed that it doesn’t until you pointed it out just now!
@Lilly , did the old TC indent on mobile?
2 לייקים
Lilly
(Lillian )
19 בפברואר, 2026, 4:34am
7
i refactored this component and it should work for you on mobile now. let me know if there are issues. edited OP.
6 לייקים
tknospdr
(David Muszynski)
20 בפברואר, 2026, 2:28pm
8
What was the thought/reason for deprecating a more full featured component (Nested categories) in favor of this one with less control?
Can I keep using the old one even though it’s deprecated or is it going to eventually break?
לייק 1
Works great - thanks so much Lilly! I can remove my CSS workaround now
לייק 1
Neil_Evans
(Neil Evans)
19 במרץ, 2026, 11:41am
10
Ahah - it indents fine in portrait, but not in landscape (using an iPad)
Lilly
(Lillian )
19 במרץ, 2026, 12:49pm
11
works on my ipad
let me guess, it’s doing that two-column sidebar view?
Neil_Evans
(Neil Evans)
19 במרץ, 2026, 1:05pm
12
Ahah - sorry, forgot to mention my custom CSS forces it to single column on mobile. It works fine in portrait (indented like desktop) but is a plain-flat list in landscape
Lilly
(Lillian )
19 במרץ, 2026, 2:44pm
13
this is what i see on my iPad in both landscape and portrait views:
i think firefox view was sometimes weird on tablet with 2-columns. i pushed a fix that should force it to use single column all the time.
לייק 1
Neil_Evans
(Neil Evans)
19 במרץ, 2026, 3:47pm
14
Ah -it’s working for me now too, sorry! It seems to go “flat” when you rotate the device - but fixes itself if you refresh. Thanks for checking!!
לייק 1