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