Compare commits
3 Commits
dev
...
session-ti
| Author | SHA1 | Date |
|---|---|---|
|
|
5718d59e31 | |
|
|
e79f97db3d | |
|
|
219ed4e2ef |
|
|
@ -9,7 +9,7 @@
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|
||||||
&.tool-collapsible {
|
&.tool-collapsible {
|
||||||
--tool-content-gap: 8px;
|
--tool-content-gap: 4px;
|
||||||
gap: var(--tool-content-gap);
|
gap: var(--tool-content-gap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
color: var(--text-strong);
|
color: var(--text-strong);
|
||||||
font-family: var(--font-family-sans);
|
font-family: var(--font-family-sans);
|
||||||
font-size: var(--font-size-base); /* 14px */
|
font-size: var(--font-size-base); /* 14px */
|
||||||
line-height: var(--line-height-x-large);
|
line-height: 160%;
|
||||||
|
|
||||||
/* Spacing for flow */
|
/* Spacing for flow */
|
||||||
> *:first-child {
|
> *:first-child {
|
||||||
|
|
@ -23,11 +23,11 @@
|
||||||
h4,
|
h4,
|
||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
font-size: var(--font-size-base);
|
font-size: 14px;
|
||||||
color: var(--text-strong);
|
color: var(--text-strong);
|
||||||
font-weight: var(--font-weight-medium);
|
font-weight: var(--font-weight-medium);
|
||||||
margin-top: 2rem;
|
margin-top: 24px;
|
||||||
margin-bottom: 0.75rem;
|
margin-bottom: 24px;
|
||||||
line-height: var(--line-height-large);
|
line-height: var(--line-height-large);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,10 +58,10 @@
|
||||||
/* Lists */
|
/* Lists */
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
margin-top: 0.5rem;
|
margin-top: 8px;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 24px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
padding-left: 1.5rem;
|
padding-left: 32px;
|
||||||
list-style-position: outside;
|
list-style-position: outside;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -117,12 +117,12 @@
|
||||||
hr {
|
hr {
|
||||||
border: none;
|
border: none;
|
||||||
height: 0;
|
height: 0;
|
||||||
margin: 2.5rem 0;
|
margin: 40px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shiki {
|
.shiki {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding: 8px 12px;
|
padding: 12px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border: 0.5px solid var(--border-weak-base);
|
border: 0.5px solid var(--border-weak-base);
|
||||||
}
|
}
|
||||||
|
|
@ -201,8 +201,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
margin-top: 2rem;
|
margin-top: 12px;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 32px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
|
|
@ -229,7 +229,7 @@
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
margin: 1.5rem 0;
|
margin: 24px 0;
|
||||||
font-size: var(--font-size-base);
|
font-size: var(--font-size-base);
|
||||||
display: block;
|
display: block;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|
@ -239,7 +239,7 @@
|
||||||
td {
|
td {
|
||||||
/* Minimal borders for structure, matching TUI "lines" roughly but keeping it web-clean */
|
/* Minimal borders for structure, matching TUI "lines" roughly but keeping it web-clean */
|
||||||
border-bottom: 1px solid var(--border-weaker-base);
|
border-bottom: 1px solid var(--border-weaker-base);
|
||||||
padding: 0.75rem 0.5rem;
|
padding: 12px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -283,9 +283,9 @@
|
||||||
line-height: var(--line-height-normal);
|
line-height: var(--line-height-normal);
|
||||||
|
|
||||||
[data-component="markdown"] {
|
[data-component="markdown"] {
|
||||||
margin-top: 24px;
|
margin-top: 16px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: var(--font-size-base);
|
font-size: 13px;
|
||||||
color: var(--text-weak);
|
color: var(--text-weak);
|
||||||
|
|
||||||
strong,
|
strong,
|
||||||
|
|
@ -556,9 +556,12 @@
|
||||||
|
|
||||||
[data-component="exa-tool-output"] {
|
[data-component="exa-tool-output"] {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-top: 8px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
font-family: var(--font-family-sans);
|
||||||
|
font-size: var(--font-size-base);
|
||||||
|
line-height: var(--line-height-large);
|
||||||
|
color: var(--text-base);
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-slot="basic-tool-tool-subtitle"].exa-tool-query {
|
[data-slot="basic-tool-tool-subtitle"].exa-tool-query {
|
||||||
|
|
@ -578,6 +581,8 @@
|
||||||
[data-slot="exa-tool-link"] {
|
[data-slot="exa-tool-link"] {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
font: inherit;
|
||||||
|
line-height: inherit;
|
||||||
color: var(--text-interactive-base);
|
color: var(--text-interactive-base);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-underline-offset: 2px;
|
text-underline-offset: 2px;
|
||||||
|
|
@ -636,13 +641,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-component="context-tool-group-list"] {
|
[data-component="context-tool-group-list"] {
|
||||||
padding-top: 6px;
|
padding-top: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
padding-bottom: 4px;
|
padding-bottom: 0;
|
||||||
padding-left: 13px;
|
padding-left: 12px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 4px;
|
||||||
|
|
||||||
[data-slot="context-tool-group-item"] {
|
[data-slot="context-tool-group-item"] {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
gap: 18px;
|
gap: 0px;
|
||||||
overflow-anchor: none;
|
overflow-anchor: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -220,5 +220,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-slot="session-turn-list"] {
|
[data-slot="session-turn-list"] {
|
||||||
gap: 48px;
|
gap: 24px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -568,6 +568,7 @@ const MD = "markdown.css"
|
||||||
const MP = "message-part.css"
|
const MP = "message-part.css"
|
||||||
const ST = "session-turn.css"
|
const ST = "session-turn.css"
|
||||||
const CL = "collapsible.css"
|
const CL = "collapsible.css"
|
||||||
|
const BT = "basic-tool.css"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Source mapping for a CSS control.
|
* Source mapping for a CSS control.
|
||||||
|
|
@ -607,10 +608,10 @@ const CSS_CONTROLS: CSSControl[] = [
|
||||||
// --- Timeline spacing ---
|
// --- Timeline spacing ---
|
||||||
{
|
{
|
||||||
key: "turn-gap",
|
key: "turn-gap",
|
||||||
label: "Turn gap",
|
label: "Above user messages",
|
||||||
group: "Timeline Spacing",
|
group: "Timeline Spacing",
|
||||||
type: "range",
|
type: "range",
|
||||||
initial: "48",
|
initial: "32",
|
||||||
selector: '[data-slot="session-turn-list"]',
|
selector: '[data-slot="session-turn-list"]',
|
||||||
property: "gap",
|
property: "gap",
|
||||||
min: "0",
|
min: "0",
|
||||||
|
|
@ -621,10 +622,10 @@ const CSS_CONTROLS: CSSControl[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "container-gap",
|
key: "container-gap",
|
||||||
label: "Container gap",
|
label: "Below user messages",
|
||||||
group: "Timeline Spacing",
|
group: "Timeline Spacing",
|
||||||
type: "range",
|
type: "range",
|
||||||
initial: "18",
|
initial: "0",
|
||||||
selector: '[data-slot="session-turn-message-container"]',
|
selector: '[data-slot="session-turn-message-container"]',
|
||||||
property: "gap",
|
property: "gap",
|
||||||
min: "0",
|
min: "0",
|
||||||
|
|
@ -1040,12 +1041,40 @@ const CSS_CONTROLS: CSSControl[] = [
|
||||||
},
|
},
|
||||||
|
|
||||||
// --- Tool parts ---
|
// --- Tool parts ---
|
||||||
|
{
|
||||||
|
key: "tool-subtitle-font-size",
|
||||||
|
label: "Subtitle font size",
|
||||||
|
group: "Tool Parts",
|
||||||
|
type: "range",
|
||||||
|
initial: "14",
|
||||||
|
selector: '[data-slot="basic-tool-tool-subtitle"]',
|
||||||
|
property: "font-size",
|
||||||
|
min: "10",
|
||||||
|
max: "22",
|
||||||
|
step: "1",
|
||||||
|
unit: "px",
|
||||||
|
source: { file: BT, anchor: '[data-slot="basic-tool-tool-subtitle"]', prop: "font-size", format: px },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "exa-output-font-size",
|
||||||
|
label: "Search output font size",
|
||||||
|
group: "Tool Parts",
|
||||||
|
type: "range",
|
||||||
|
initial: "14",
|
||||||
|
selector: '[data-component="exa-tool-output"]',
|
||||||
|
property: "font-size",
|
||||||
|
min: "10",
|
||||||
|
max: "22",
|
||||||
|
step: "1",
|
||||||
|
unit: "px",
|
||||||
|
source: { file: MP, anchor: '[data-component="exa-tool-output"]', prop: "font-size", format: px },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: "tool-content-gap",
|
key: "tool-content-gap",
|
||||||
label: "Trigger/content gap",
|
label: "Trigger/content gap",
|
||||||
group: "Tool Parts",
|
group: "Tool Parts",
|
||||||
type: "range",
|
type: "range",
|
||||||
initial: "8",
|
initial: "4",
|
||||||
selector: '[data-component="collapsible"].tool-collapsible',
|
selector: '[data-component="collapsible"].tool-collapsible',
|
||||||
property: "--tool-content-gap",
|
property: "--tool-content-gap",
|
||||||
min: "0",
|
min: "0",
|
||||||
|
|
@ -1059,7 +1088,7 @@ const CSS_CONTROLS: CSSControl[] = [
|
||||||
label: "Explored tool gap",
|
label: "Explored tool gap",
|
||||||
group: "Explored Group",
|
group: "Explored Group",
|
||||||
type: "range",
|
type: "range",
|
||||||
initial: "14",
|
initial: "4",
|
||||||
selector: '[data-component="context-tool-group-list"]',
|
selector: '[data-component="context-tool-group-list"]',
|
||||||
property: "gap",
|
property: "gap",
|
||||||
min: "0",
|
min: "0",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue