fix: improve AI chat table rendering with CSS styling and narrow-panel formatting
- Add SCSS for AI chat tables: borders, padding, zebra striping, hover, dark mode - Style headings, code, bold text, and lists in chat messages - Update system prompt: enforce 3-column max tables for narrow chat panel - Use key-value (2-column) tables for summaries, split wide data into sections - Provide explicit correct/wrong format examples in prompt
This commit is contained in:
@@ -928,3 +928,99 @@ html.dark, .o_dark {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ========================================================================
|
||||
// AI CHAT: Table and response styling for Fusion Claims Intelligence
|
||||
// ========================================================================
|
||||
.o-mail-Message-body,
|
||||
.o-mail-Message-textContent,
|
||||
.o_mail_body_content {
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 8px 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
|
||||
th, td {
|
||||
border: 1px solid rgba(150, 150, 150, 0.4);
|
||||
padding: 5px 8px;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: rgba(100, 100, 100, 0.15);
|
||||
font-weight: 600;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
tr:nth-child(even) td {
|
||||
background-color: rgba(100, 100, 100, 0.05);
|
||||
}
|
||||
|
||||
tr:hover td {
|
||||
background-color: rgba(100, 100, 100, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
margin: 12px 0 6px 0;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid rgba(150, 150, 150, 0.3);
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin: 10px 0 4px 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: rgba(100, 100, 100, 0.1);
|
||||
padding: 1px 4px;
|
||||
border-radius: 3px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
margin: 4px 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
html.dark .o-mail-Message-body,
|
||||
html.dark .o-mail-Message-textContent,
|
||||
html.dark .o_mail_body_content,
|
||||
.o_dark .o-mail-Message-body,
|
||||
.o_dark .o-mail-Message-textContent,
|
||||
.o_dark .o_mail_body_content {
|
||||
table {
|
||||
th, td {
|
||||
border-color: rgba(200, 200, 200, 0.2);
|
||||
}
|
||||
th {
|
||||
background-color: rgba(200, 200, 200, 0.1);
|
||||
}
|
||||
tr:nth-child(even) td {
|
||||
background-color: rgba(200, 200, 200, 0.04);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user