Add the template and styles for the chat notification

This commit is contained in:
Oliver 2025-11-08 19:12:19 -07:00
parent db4f57fc90
commit e79bd4d505
3 changed files with 38 additions and 0 deletions

21
styles/elements/table.css Normal file
View file

@ -0,0 +1,21 @@
/*
This styling is unscoped in order to make it so that it still applies
to the chat messages which are not within a scope I control.
*/
table.taf-query-summary {
margin: 0px;
tr:hover > td {
background-color: var(--table-header-border-highlight);
}
td {
padding: 4px 8px;
border: 1px solid var(--table-header-border-color);
width: 40%;
&:first-of-type {
width: 60%;
}
}
}

View file

@ -14,6 +14,7 @@
@import url("./elements/input.css") layer(elements); @import url("./elements/input.css") layer(elements);
@import url("./elements/p.css") layer(elements); @import url("./elements/p.css") layer(elements);
@import url("./elements/prose-mirror.css") layer(elements); @import url("./elements/prose-mirror.css") layer(elements);
@import url("./elements/table.css") layer(elements);
/* Apps */ /* Apps */
@import url("./Apps/common.css") layer(apps); @import url("./Apps/common.css") layer(apps);

View file

@ -0,0 +1,16 @@
{{#if answers}}
<table class="taf-query-summary">
<tr>
<td>Key</td>
<td>Value</td>
</tr>
{{#each answers as | answer |}}
<tr>
<td>{{ @key }}</td>
<td>{{ answer }}</td>
</tr>
{{/each}}
</table>
{{else}}
No data submitted
{{/if}}