}
export default function App(props: Props) {
- return (<div class={S.container}><TaxReturnView {...props} /></div>);
+ return (<div><TaxReturnView {...props} /></div>);
}
* SPDX-License-Identifier: GPL-3.0-only
*/
+:root {
+ --form-width: 750px;
+}
+
+.form {
+}
+
.form-name {
- margin: 0;
+ width: var(--form-width);
+ margin: 0 auto;
+
border: 3px solid black;
border-bottom-width: 2px;
+ box-sizing: border-box;
padding: 5px;
}
.table {
- border: 1px solid black;
- border-collapse: collapse;
width: 100%;
+ display: flex;
+ flex-direction: column;
}
.line {
+ width: var(--form-width);
+ margin: 0 auto;
+
border: 1px solid black;
+ box-sizing: border-box;
+
+ display: flex;
+ flex-direction: row;
+ align-items: center;
}
.line:hover {
font-weight: bold;
padding: 0 5px;
text-align: center;
+ width: 10%;
+ padding: 3px 0;
}
.description {
padding: 3px 10px 3px 3px;
+ flex: 2;
}
.value {
.trace-viewer {
background-color: #fffdf1;
padding: 10px;
+ border: 1px solid red;
}
.trace-viewer h2 {
});
return (
- <>
+ <div class={S.form}>
<h2 class={S.formName}>Form {props.form.name}</h2>
- <table class={S.table}>
+ <div class={S.table}>
<For each={lines()}>
{line => <LineView tr={props.tr} line={line} />}
</For>
- </table>
- </>
+ </div>
+ </div>
);
}
const toggleTrace = () => setState('showTrace', !state.showTrace);
return (
- <tr class={S.line}>
- <th class={S.id} onclick={toggleTrace}>{line.id}</th>
- <td class={S.description}>
- {line.description}
+ <>
+ <div class={S.line}>
+ <div class={S.id} onclick={toggleTrace}>{line.id}</div>
+ <div class={S.description}>
+ {line.description}
- <Show when={state.showTrace}>
- <TraceViewer line={line} trace={state.trace} />
- </Show>
- </td>
- <td class={S.value}>{value()}</td>
- </tr>
+ </div>
+ <div class={S.value}>{value()}</div>
+ </div>
+ <Show when={state.showTrace}>
+ <TraceViewer line={line} trace={state.trace} />
+ </Show>
+ </>
);
}