fn compute_cell_size(config: &UiConfig, metrics: &Metrics) -> (f32, f32)
Calculate the cell dimensions based on font metrics.
This will return a tuple of the cell width and height.