fix InlineError blank space and ElicitationUrlPanel URL overflow
Only render InlineError details Stack when there is content to show. Add wrapping Code theme variant for long URLs that would push buttons offscreen. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
abb2d57e40
commit
4a4818e933
1 changed files with 37 additions and 25 deletions
|
|
@ -1,9 +1,14 @@
|
|||
import { Code } from "@mantine/core";
|
||||
|
||||
export const ThemeCode = Code.extend({
|
||||
styles: () => ({
|
||||
root: {
|
||||
styles: (_theme, props) => {
|
||||
const root: Record<string, string> = {
|
||||
backgroundColor: "var(--inspector-surface-code)",
|
||||
},
|
||||
}),
|
||||
};
|
||||
if (props.variant === "wrapping") {
|
||||
root.wordBreak = "break-all";
|
||||
root.whiteSpace = "pre-wrap";
|
||||
}
|
||||
return { root };
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue