Skip to content

Commit a391be9

Browse files
fix(minimax-bot): keep the chat visible when task bars stack (#43)
* fix(minimax-bot): keep the chat visible when task bars stack The helper strip used its content height as a flex minimum, so the transcript collapsed to its padding and the page scrolled the sidebar away. Cap that strip and pin the shell. Co-authored-by: DanielWalnut <hetaoBackend@users.noreply.github.com> * chore(minimax-bot): clarify what pins the sidebar --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: DanielWalnut <hetaoBackend@users.noreply.github.com>
1 parent 9060bfc commit a391be9

3 files changed

Lines changed: 39 additions & 2 deletions

File tree

‎plugins/minimax-ai/minimax-bot/.minimax-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"schemaVersion": 1,
33
"name": "minimax-bot",
44
"displayName": "MiniMax Bot",
5-
"version": "0.7.3",
5+
"version": "0.7.4",
66
"description": "Turn MiniMax Code into an always-on team of Bots. A Chief Bot helps you build the team; in group chats the admin answers and @mentions hand work to other members. Every Bot has its own octopus avatar and memory, with scheduled tasks and usage stats.",
77
"author": "MiniMax Code",
88
"icon": "icon.png",

‎plugins/minimax-ai/minimax-bot/miniapp/client/app.css‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ html,
5959
body {
6060
margin: 0;
6161
height: 100%;
62+
/* The chat shell scrolls inside its panes. A document scrollport would carry the sidebar with it. */
63+
overflow: hidden;
6264
background: var(--bg);
6365
color: var(--ink);
6466
font-family: ui-sans-serif, -apple-system, system-ui, 'PingFang SC', 'Segoe UI', Helvetica, Arial, sans-serif;
@@ -100,7 +102,10 @@ button {
100102
.app {
101103
display: flex;
102104
height: 100vh;
105+
height: 100dvh;
106+
max-height: 100dvh;
103107
min-height: 0;
108+
overflow: hidden;
104109
}
105110

106111
/* ================================================================ octopus marks */
@@ -368,7 +373,14 @@ button {
368373
flex-direction: column;
369374
background: var(--sidebar);
370375
border-right: 0.5px solid var(--line);
376+
/* Pinned by height: 100% + overflow: hidden inside the non-scrolling .app; sticky is only a fallback if .app ever scrolls. */
377+
position: sticky;
378+
top: 0;
379+
align-self: flex-start;
380+
height: 100%;
381+
max-height: 100dvh;
371382
min-height: 0;
383+
overflow: hidden;
372384
--ring: var(--sidebar);
373385
}
374386

@@ -382,11 +394,20 @@ button {
382394
padding: 14px 0;
383395
background: color-mix(in srgb, var(--ink) 3%, var(--sidebar));
384396
border-right: 0.5px solid var(--line);
397+
position: sticky;
398+
top: 0;
399+
align-self: flex-start;
400+
height: 100%;
401+
max-height: 100dvh;
402+
min-height: 0;
403+
overflow: hidden;
385404
--rail-bg: color-mix(in srgb, var(--ink) 3%, var(--sidebar));
386405
}
387406

388407
.rail-filters {
389408
flex: 1;
409+
min-height: 0;
410+
overflow-y: auto;
390411
display: flex;
391412
flex-direction: column;
392413
align-items: center;
@@ -508,6 +529,7 @@ button {
508529

509530
.side-list {
510531
flex: 1;
532+
min-height: 0;
511533
overflow-y: auto;
512534
padding: 8px 10px 12px;
513535
display: flex;
@@ -670,6 +692,7 @@ button {
670692
display: flex;
671693
flex-direction: column;
672694
min-height: 0;
695+
overflow: hidden;
673696
background: var(--bg);
674697
--ring: var(--bg);
675698
}
@@ -734,6 +757,8 @@ button {
734757

735758
.feed {
736759
flex: 1;
760+
/* Padding alone is 84px. Without a real floor, task rows (min-height: auto) shrink the transcript to that sliver. */
761+
min-height: min(220px, 48%);
737762
overflow-y: auto;
738763
padding: 72px 24px 12px;
739764
scroll-behavior: auto;
@@ -1178,6 +1203,11 @@ button {
11781203
display: flex;
11791204
flex-direction: column;
11801205
gap: 8px;
1206+
flex: 0 1 auto;
1207+
min-height: 0;
1208+
max-height: min(240px, 36%);
1209+
overflow-y: auto;
1210+
overscroll-behavior: contain;
11811211
}
11821212

11831213
.approval {
@@ -1238,6 +1268,7 @@ button {
12381268

12391269
/* composer */
12401270
.composer {
1271+
flex: none;
12411272
padding: 4px 24px 18px;
12421273
}
12431274

@@ -2680,6 +2711,12 @@ fieldset.field {
26802711
display: flex;
26812712
flex-direction: column;
26822713
gap: 4px;
2714+
/* A few rows stay fully visible. More than the cap scrolls here instead of pushing the transcript off screen. */
2715+
flex: 0 1 auto;
2716+
min-height: 0;
2717+
max-height: min(280px, 40%);
2718+
overflow-y: auto;
2719+
overscroll-behavior: contain;
26832720
}
26842721

26852722
.helpers:empty {

‎plugins/minimax-ai/minimax-bot/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "minimax-bot",
3-
"version": "0.7.3",
3+
"version": "0.7.4",
44
"private": true,
55
"type": "module",
66
"mcode": {

0 commit comments

Comments
 (0)