Skip to content

Commit 4e4945d

Browse files
committed
More styling tweaks
1 parent 999b6d4 commit 4e4945d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

color-conversion-table/src/App.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
}
44

55
@page :left {
6-
margin-left: 1in;
6+
margin-left: 0.75in;
77
}
88

99
@page :right {
10-
margin-left: 1in;
10+
margin-left: 0.75in;
1111
}
1212

1313
@media screen {
@@ -17,6 +17,14 @@
1717
}
1818

1919
@media print {
20+
a::after {
21+
content: " (" attr(href) ")";
22+
}
23+
24+
body {
25+
font-size: 14px;
26+
}
27+
2028
.noprint {
2129
display: none !important;
2230
}

color-conversion-table/src/FiltersAndTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {useColors} from './ColorsContext'
99
export const FiltersAndTable = () => {
1010
const {colors} = useColors()
1111
const colorChunks = useMemo(
12-
() => chunkArray(colors, Math.round(colors.length / 2)),
12+
() => chunkArray(colors, Math.ceil(colors.length / 2)),
1313
[colors]
1414
)
1515
return (

0 commit comments

Comments
 (0)