fix(quick-pane): hide empty exchange frame
This commit is contained in:
@@ -260,6 +260,17 @@ export default function QuickPane() {
|
|||||||
activityPhase === "Thinking"
|
activityPhase === "Thinking"
|
||||||
? `${activityPhase} · ${elapsedSeconds}s`
|
? `${activityPhase} · ${elapsedSeconds}s`
|
||||||
: activityPhase;
|
: activityPhase;
|
||||||
|
const hasExchangeContent =
|
||||||
|
messages.length > 0 ||
|
||||||
|
runActive ||
|
||||||
|
responseComplete ||
|
||||||
|
!!activity ||
|
||||||
|
!!escalation ||
|
||||||
|
!!error ||
|
||||||
|
!!catalogError ||
|
||||||
|
!!notice ||
|
||||||
|
!!catalogNotice ||
|
||||||
|
!!extension;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setThinkingLevel((current) =>
|
setThinkingLevel((current) =>
|
||||||
@@ -1004,7 +1015,7 @@ export default function QuickPane() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
className="quick-pane-exchange"
|
className={`quick-pane-exchange${hasExchangeContent ? "" : " empty"}`}
|
||||||
aria-label="Quick exchange"
|
aria-label="Quick exchange"
|
||||||
ref={exchangeRef}
|
ref={exchangeRef}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -210,6 +210,10 @@ body {
|
|||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.quick-pane-exchange.empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.quick-pane-transcript {
|
.quick-pane-transcript {
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user