Pad column headers
This commit is contained in:
parent
dbb282f0c9
commit
c27693b7fb
|
@ -14,6 +14,7 @@ table, tr, td {
|
||||||
border-spacing: 0px;
|
border-spacing: 0px;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
|
font-family: monospace;
|
||||||
font-size: 0.5em;
|
font-size: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ pub fn DestinationPlate(props: &DestinationPlateProps) -> Html {
|
||||||
let column_header = {
|
let column_header = {
|
||||||
let headers = (1..=props.destination_plate.plate.size().1)
|
let headers = (1..=props.destination_plate.plate.size().1)
|
||||||
.map(|j| {
|
.map(|j| {
|
||||||
html! {<th>{j}</th>}
|
html! {<th>{format!("{:0>2}", j)}</th>}
|
||||||
})
|
})
|
||||||
.collect::<Html>();
|
.collect::<Html>();
|
||||||
html! {<tr><th />{ headers }</tr>}
|
html! {<tr><th />{ headers }</tr>}
|
||||||
|
|
|
@ -98,7 +98,7 @@ pub fn SourcePlate(props: &SourcePlateProps) -> Html {
|
||||||
let column_header = {
|
let column_header = {
|
||||||
let headers = (1..=props.source_plate.plate.size().1)
|
let headers = (1..=props.source_plate.plate.size().1)
|
||||||
.map(|j| {
|
.map(|j| {
|
||||||
html! {<th>{j}</th>}
|
html! {<th>{format!("{:0>2}", j)}</th>}
|
||||||
})
|
})
|
||||||
.collect::<Html>();
|
.collect::<Html>();
|
||||||
html! {<tr><th />{ headers }</tr>}
|
html! {<tr><th />{ headers }</tr>}
|
||||||
|
|
Loading…
Reference in New Issue