들여쓰기 하위 카테고리

:information_source: 요약 사이드바에서 하위 카테고리를 자동으로 들여쓰기합니다
:eyeglasses: 미리보기 https://discourse.theme-creator.io/theme/Lilly/discourse-indented-subcategories
:hammer_and_wrench: 저장소 https://github.com/Lillinator/indented-subcategories
:question: 설치 가이드 테마 또는 테마 컴포넌트 설치 방법

이 테마 컴포넌트 설치

:information_source: 개요

이 간단한 테마 컴포넌트는 사이드바의 모든 하위 카테고리를 자동으로 들여쓰기합니다 - 데스크톱, 태블릿, 모바일 뷰포트 크기 모두에서 작동합니다.

인덴트 크기를 변경할 수 있는 설정이 하나 있습니다 - 기본값은 1em이며, 최소값은 0.5em, 최대값은 3em입니다.

설정:

사이드바의 결과 예시 스크린샷:


:bulb: 참고 사항

이 테마 컴포넌트는 단일 레벨 하위 카테고리를 위해 설계되었습니다. 포럼에 하위-하위 카테고리(sub-subcategories)가 활성화되어 있다면, 이 컴포넌트는 깨지거나 최소한 사이드바에서 매우 좋지 않은 모습을 보일 가능성이 높습니다.

이 컴포넌트는 이제 비추천(deprecated) 상태인 Indented / Nested Sidebar Categories or Subcategories 을 대체합니다.


제 다른 Discourse 관련 자료 보기
22개의 좋아요

nice job! It will be wonderful if it can fold or unfold for the parent categories. Is it possible?

1개의 좋아요

no - sorry, but i have no plans to add more options to this component.

1개의 좋아요

Nice work Lilly - delightfully simple and effective. A marked improvement!!

Also, I love the clear admin notice about it.

2개의 좋아요

It would be useful to have the option to indent on mobile too

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개의 좋아요

i refactored this component and it should work for you on mobile now. let me know if there are issues. edited OP.

6개의 좋아요

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 :slight_smile:

1개의 좋아요

Ahah - it indents fine in portrait, but not in landscape (using an iPad)

works on my ipad :woman_shrugging:

let me guess, it’s doing that two-column sidebar view?

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

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.

2개의 좋아요

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개의 좋아요