No rounded corners
This commit is contained in:
+3
-3
@@ -3440,7 +3440,7 @@ export default function App() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="app-grid-surface app-safe-frame h-full">
|
<div className="app-grid-surface app-safe-frame h-full">
|
||||||
<div className="workspace-shell flex h-full w-full overflow-hidden bg-transparent md:gap-2">
|
<div className="workspace-shell flex h-full w-full overflow-hidden bg-transparent">
|
||||||
{isMobileSidebarOpen ? (
|
{isMobileSidebarOpen ? (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -3452,7 +3452,7 @@ export default function App() {
|
|||||||
|
|
||||||
<aside
|
<aside
|
||||||
className={cn(
|
className={cn(
|
||||||
"workspace-sidebar glass-panel fixed inset-y-0 left-0 z-40 flex w-[86vw] max-w-80 shrink-0 flex-col border-r border-violet-300/18 transition-transform md:static md:z-auto md:w-80 md:max-w-none md:rounded-2xl md:border",
|
"workspace-sidebar glass-panel fixed inset-y-0 left-0 z-40 flex w-[86vw] max-w-80 shrink-0 flex-col border-r border-violet-300/18 transition-transform md:static md:z-auto md:w-80 md:max-w-none",
|
||||||
isMobileSidebarOpen ? "translate-x-0" : "-translate-x-full md:translate-x-0"
|
isMobileSidebarOpen ? "translate-x-0" : "-translate-x-full md:translate-x-0"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@@ -3609,7 +3609,7 @@ export default function App() {
|
|||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<main
|
<main
|
||||||
className="workspace-content glass-panel relative flex min-w-0 flex-1 touch-pan-y flex-col overflow-hidden border-violet-300/18 md:touch-auto md:rounded-2xl md:border"
|
className="workspace-content glass-panel relative flex min-w-0 flex-1 touch-pan-y flex-col overflow-hidden md:touch-auto"
|
||||||
onTouchStart={handleMobileWorkspaceTouchStart}
|
onTouchStart={handleMobileWorkspaceTouchStart}
|
||||||
onTouchMove={handleMobileWorkspaceTouchMove}
|
onTouchMove={handleMobileWorkspaceTouchMove}
|
||||||
onTouchEnd={handleMobileWorkspaceTouchEnd}
|
onTouchEnd={handleMobileWorkspaceTouchEnd}
|
||||||
|
|||||||
@@ -378,13 +378,13 @@ function ToolCallStack({
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
{!expanded && hiddenCount ? (
|
{!expanded && hiddenCount ? (
|
||||||
<span className="absolute bottom-1 right-10 z-20 rounded-full border border-cyan-300/30 bg-slate-950/86 px-2 py-0.5 text-[10px] font-semibold leading-none text-cyan-100 shadow-sm">
|
<span className="absolute bottom-1 right-10 z-20 rounded-none border border-cyan-300/30 bg-slate-950/86 px-2 py-0.5 text-[10px] font-semibold leading-none text-cyan-100 shadow-sm">
|
||||||
+{hiddenCount}
|
+{hiddenCount}
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="tool-call-stack-toggle absolute right-0 top-2 z-20 flex h-8 w-8 items-center justify-center rounded-full"
|
className="tool-call-stack-toggle absolute right-0 top-2 z-20 flex h-8 w-8 items-center justify-center rounded-none"
|
||||||
aria-expanded={expanded ? "true" : "false"}
|
aria-expanded={expanded ? "true" : "false"}
|
||||||
aria-label={`${expanded ? "Collapse" : "Expand"} ${countLabel}`}
|
aria-label={`${expanded ? "Collapse" : "Expand"} ${countLabel}`}
|
||||||
title={`${expanded ? "Collapse" : "Expand"} ${countLabel}`}
|
title={`${expanded ? "Collapse" : "Expand"} ${countLabel}`}
|
||||||
@@ -603,7 +603,7 @@ export function ChatMessagesPanel({ messages, isLoading, isSending, onMessageCon
|
|||||||
className={cn(
|
className={cn(
|
||||||
"max-w-[85%] space-y-3",
|
"max-w-[85%] space-y-3",
|
||||||
isUser
|
isUser
|
||||||
? "rounded-xl border border-violet-300/24 bg-[linear-gradient(135deg,hsl(258_86%_48%_/_0.86),hsl(278_72%_29%_/_0.86))] px-4 py-3 text-sm leading-6 text-fuchsia-50 shadow-sm"
|
? "chat-user-message border border-violet-300/24 bg-[linear-gradient(135deg,hsl(258_86%_48%_/_0.86),hsl(278_72%_29%_/_0.86))] px-4 py-3 text-sm leading-6 text-fuchsia-50 shadow-sm"
|
||||||
: "text-base leading-7 text-violet-50"
|
: "text-base leading-7 text-violet-50"
|
||||||
)}
|
)}
|
||||||
onContextMenu={
|
onContextMenu={
|
||||||
|
|||||||
+16
-28
@@ -31,7 +31,7 @@
|
|||||||
--secondary-foreground: 254 38% 94%;
|
--secondary-foreground: 254 38% 94%;
|
||||||
--accent: 188 86% 50%;
|
--accent: 188 86% 50%;
|
||||||
--accent-foreground: 230 45% 8%;
|
--accent-foreground: 230 45% 8%;
|
||||||
--radius: 0.5rem;
|
--radius: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@@ -72,6 +72,7 @@ select,
|
|||||||
textarea {
|
textarea {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
|
border-radius: var(--radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
@@ -148,14 +149,6 @@ textarea {
|
|||||||
padding: 0.75rem 1.25rem;
|
padding: 0.75rem 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-safe-frame {
|
|
||||||
padding:
|
|
||||||
max(0.5rem, var(--safe-area-top))
|
|
||||||
max(0.5rem, var(--safe-area-right))
|
|
||||||
max(0.5rem, var(--safe-area-bottom))
|
|
||||||
max(0.5rem, var(--safe-area-left));
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-search-safe-pad {
|
.app-search-safe-pad {
|
||||||
padding:
|
padding:
|
||||||
max(1.5rem, var(--safe-area-top))
|
max(1.5rem, var(--safe-area-top))
|
||||||
@@ -166,19 +159,11 @@ textarea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (horizontal-viewport-segments: 2) {
|
@media (horizontal-viewport-segments: 2) {
|
||||||
.app-safe-frame {
|
|
||||||
padding:
|
|
||||||
max(0.5rem, var(--safe-area-top))
|
|
||||||
max(0.5rem, var(--safe-area-right))
|
|
||||||
max(0.5rem, var(--safe-area-bottom))
|
|
||||||
max(0.5rem, var(--safe-area-left));
|
|
||||||
}
|
|
||||||
|
|
||||||
.workspace-shell {
|
.workspace-shell {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns:
|
grid-template-columns:
|
||||||
calc(env(viewport-segment-width 0 0) - max(0.5rem, var(--safe-area-left)))
|
calc(env(viewport-segment-width 0 0) - var(--safe-area-left))
|
||||||
calc(env(viewport-segment-width 1 0) - max(0.5rem, var(--safe-area-right)));
|
calc(env(viewport-segment-width 1 0) - var(--safe-area-right));
|
||||||
column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
|
column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -187,14 +172,10 @@ textarea {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
transform: none;
|
transform: none;
|
||||||
border-width: 1px;
|
|
||||||
border-radius: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspace-content {
|
.workspace-content {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
border-width: 1px;
|
|
||||||
border-radius: 1rem;
|
|
||||||
touch-action: auto;
|
touch-action: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,6 +194,13 @@ textarea {
|
|||||||
0 14px 36px hsl(240 80% 2% / 0.28);
|
0 14px 36px hsl(240 80% 2% / 0.28);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat-user-message {
|
||||||
|
/* Preserve the original bubble radius independently of the square UI theme.
|
||||||
|
Browsers without corner-shape support fall back to circular corners. */
|
||||||
|
border-radius: 0.75rem;
|
||||||
|
corner-shape: squircle;
|
||||||
|
}
|
||||||
|
|
||||||
.tool-call-stack-shell {
|
.tool-call-stack-shell {
|
||||||
perspective: 900px;
|
perspective: 900px;
|
||||||
transform-style: preserve-3d;
|
transform-style: preserve-3d;
|
||||||
@@ -464,7 +452,7 @@ textarea {
|
|||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
border: 1px solid hsl(var(--border) / 0.86);
|
border: 1px solid hsl(var(--border) / 0.86);
|
||||||
border-radius: 0.625rem;
|
border-radius: var(--radius);
|
||||||
background: hsl(246 34% 10% / 0.76);
|
background: hsl(246 34% 10% / 0.76);
|
||||||
box-shadow: inset 0 1px 0 hsl(258 80% 88% / 0.06);
|
box-shadow: inset 0 1px 0 hsl(258 80% 88% / 0.06);
|
||||||
}
|
}
|
||||||
@@ -483,7 +471,7 @@ textarea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.md-table-scroll::-webkit-scrollbar-thumb {
|
.md-table-scroll::-webkit-scrollbar-thumb {
|
||||||
border-radius: 9999px;
|
border-radius: var(--radius);
|
||||||
background: hsl(263 78% 72% / 0.34);
|
background: hsl(263 78% 72% / 0.34);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -595,7 +583,7 @@ textarea {
|
|||||||
|
|
||||||
.md-content code {
|
.md-content code {
|
||||||
background: hsl(249 40% 10% / 0.78);
|
background: hsl(249 40% 10% / 0.78);
|
||||||
border-radius: 0.3rem;
|
border-radius: var(--radius);
|
||||||
padding: 0.05rem 0.3rem;
|
padding: 0.05rem 0.3rem;
|
||||||
font-size: 0.86em;
|
font-size: 0.86em;
|
||||||
box-decoration-break: clone;
|
box-decoration-break: clone;
|
||||||
@@ -605,7 +593,7 @@ textarea {
|
|||||||
.md-content pre {
|
.md-content pre {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
border: 1px solid hsl(253 31% 29% / 0.72);
|
border: 1px solid hsl(253 31% 29% / 0.72);
|
||||||
border-radius: 0.625rem;
|
border-radius: var(--radius);
|
||||||
background: hsl(249 40% 10% / 0.82);
|
background: hsl(249 40% 10% / 0.82);
|
||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
box-shadow: inset 0 1px 0 hsl(258 80% 88% / 0.05);
|
box-shadow: inset 0 1px 0 hsl(258 80% 88% / 0.05);
|
||||||
@@ -629,7 +617,7 @@ textarea {
|
|||||||
.md-cite-token {
|
.md-cite-token {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 9999px;
|
border-radius: var(--radius);
|
||||||
border: 1px solid hsl(274 40% 55%);
|
border: 1px solid hsl(274 40% 55%);
|
||||||
background: hsl(277 33% 21%);
|
background: hsl(277 33% 21%);
|
||||||
color: hsl(304 42% 96%);
|
color: hsl(304 42% 96%);
|
||||||
|
|||||||
@@ -29,9 +29,14 @@ const config: Config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
borderRadius: {
|
borderRadius: {
|
||||||
|
// Keep surfaces square at every size; rounded-full is reserved for dots.
|
||||||
|
DEFAULT: "var(--radius)",
|
||||||
|
sm: "var(--radius)",
|
||||||
|
md: "var(--radius)",
|
||||||
lg: "var(--radius)",
|
lg: "var(--radius)",
|
||||||
md: "calc(var(--radius) - 2px)",
|
xl: "var(--radius)",
|
||||||
sm: "calc(var(--radius) - 4px)",
|
"2xl": "var(--radius)",
|
||||||
|
"3xl": "var(--radius)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user