테마/컴포넌트 패널(CSS 내부)에 대한 제 제안

이전 테마/컴포넌트 패널(https://forum.alltiago.com/admin/customize/components)은 크게 좋아하지 않았지만, 공간 활용이나 구성 방식(그럭저럭)은 괜찮았어요. 하지만 새 패널은 제 생각엔 정말 엉망이에요.

다음과 같이 변경하는 제 대안을 공유합니다:

… 왼쪽의 작고 좁은 박스, 'Components’라는 단어의 숨김 처리(이건 제 13인치 화면만의 문제일 수도 있지만, 다른 분들도 같은 문제를 겪고 있을까요?), 그리고 스크롤 동작이 마음에 들지 않아요.

… 다음과 같이 변경합니다:

더 넓은 공간, 스크롤바 제거, 그리고 빨간색 계열의 배경으로 비활성화된 컴포넌트를 더 쉽게 구별할 수 있습니다. 마우스를 올리면 배경이 조금 더 밝아져요:

또한 불필요한 헤딩, 이미지, 그리고 중복된 설치 버튼(이제 2개 대신 1개만 있음)을 제거하고, 링크를 왼쪽으로 정렬했으며 줄바꿈을 방지하기 위해 폭을 넓혔습니다.

CSS는 다음과 같습니다:

/* Admin - wider theme/component panel */
.desktop-view .admin-customize .themes-list,
.desktop-view .admin-customize .show-current-style{
    width: 98%;
}

/* Admin - margin top component's content */
.desktop-view .admin-customize .show-current-style {
    margin-top: 3rem;
}

/*Admin - remove scroll on components' container */
.admin-customize .themes-list-container {
    overflow-y: visible;
    max-height: none;
    height: auto;
}

/* Admin - hide H1, Install button, image */
.admin-contents.admin-customize.admin-customize-themes .content-wrapper h1,
.admin-contents.admin-customize.admin-customize-themes .content-wrapper div.create-actions,
.admin-contents.admin-customize.admin-customize-themes img {
    display: none;
}

/* Admin - adjust bottom links */
.admin-contents.admin-customize.admin-customize-themes .admin-intro {
    margin: 2rem 0 0;
}

.admin-contents.admin-customize.admin-customize-themes .admin-intro .content-wrapper {
    width: 100%;
}

/* Admin - unused components' background (red) */
.admin-customize .themes-list-container__item.inactive-theme {
    background-color: #3f2525;
}

.admin-customize .themes-list-container__item.inactive-theme:hover {
    background-color: #573535;
}

저는 CSS에 아주 정통하지는 않아서 이것이 좋은 코드인지 아닌지는 모르겠지만, 동작은 합니다. 이 부분은 ChatGPT에게 요청해서 만들었습니다:

/*Admin - remove scroll on components' container */
.admin-customize .themes-list-container {
    overflow-y: visible;
    max-height: none;
    height: auto;
}

중복되거나 개선할 부분이 있다면 자유롭게 공유해 주세요. 그러면 코드를 업데이트하겠습니다.

2개의 좋아요

실제로는 그 반대입니다.

말씀하시는 구버전 레이아웃(사각형 그리드)이 사실은 새로운 버전이 될 예정이었습니다. 하지만 피드백을 통해 아직 완전히 준비가 되지 않았다는 점이 드러났기 때문에, 구버전으로 되돌렸습니다. 현재 보고 계신 버전은 새로운 버전에 몇 가지 누락된 기능이 추가되면 대체될 예정입니다. 다소 혼란스러울 수 있다는 점은 이해합니다.

2개의 좋아요

제가 말한 "구"와 "신"은 주로 시간선에 대한 것이었습니다. "신"은 "지금 보이는 것"을 의미하며, 그것이 사실은 구버전임을 알고 있었지만, 이 부분에 대해 모르는 사람에게 더 혼란을 주지 않으려고 그렇게 표현했습니다.

2개의 좋아요