Skip to content

Commit f1b428a

Browse files
move data summary card styles to styles.css and set max width to patch that display (#82)
1 parent b78c445 commit f1b428a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/renderer/dataSummaryView.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ export function summaryCard(data) {
168168
top: '54px'
169169
};
170170
const label = SUMMARY;
171-
const summaryCardElement = htl.html`<div
172-
style="font-family: sans-serif; font-size: 12px; margin-right: 10px;">
171+
const summaryCardElement = htl.html`<div class="data-summary-card">
173172
<span style="font-size:1.2em">${label}</span>
174173
<div>${d3.format(',.0f')(columnCount)}</div>
175174
${headerRowPlot}

src/renderer/styles.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
white-space: pre-wrap;
66
}
77

8+
.data-summary-card {
9+
max-width: 100px;
10+
font-family: sans-serif;
11+
font-size: 12px;
12+
margin-right: 10px;
13+
}
14+
815
.data-table {
916
max-width: 100%;
1017
background-color: var(--vscode-editor-background);

0 commit comments

Comments
 (0)