Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 47 additions & 2 deletions apps/codex-plus-manager/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ body {
}

.sidebar {
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
border-right: 1px solid hsl(var(--sidebar-border));
Expand Down Expand Up @@ -215,11 +217,13 @@ body {

.nav {
display: grid;
align-content: start;
flex: 1 1 auto;
gap: 4px;
margin-top: 12px;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
max-height: calc(100vh - 82px);
padding-right: 2px;
}

Expand Down Expand Up @@ -334,11 +338,13 @@ body {
display: grid;
align-content: start;
flex: 1 1 auto;
height: 0;
gap: 12px;
min-width: 0;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
padding: 16px 20px 24px;
scrollbar-gutter: stable;
Expand Down Expand Up @@ -3598,7 +3604,6 @@ select {

.nav {
gap: 2px;
max-height: calc(100vh - 94px);
margin-top: 4px;
padding-right: 3px;
}
Expand Down Expand Up @@ -4141,6 +4146,46 @@ select {
}
}

/* 小窗口优先保留内容区可用高度,页面其余内容通过自身滚动访问。 */
@media (max-height: 800px) {
.sidebar {
padding-block: 12px 8px;
}

.brand {
min-height: 0;
padding-bottom: 12px;
}

.nav-item {
min-height: 36px;
}

.topbar {
min-height: 56px;
padding-block: 8px;
}

.screen {
gap: 12px;
padding-top: 12px;
}
}

/* 右侧区域不足时让概览推广卡自然换行,避免标签和操作按钮被挤出。 */
@media (max-width: 1180px) {
.jojocode-overview-layout {
grid-template-columns: 1fr;
}

.jojocode-overview-side,
.jojocode-model-tags {
justify-items: start;
justify-content: flex-start;
max-width: none;
}
}

@media (max-width: 760px) {
.topbar {
align-items: flex-start;
Expand Down
Loading