Skip to content

Commit 43a226a

Browse files
committed
Reduce decoded text cell width
1 parent 4b1aef3 commit 43a226a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

media/editor/dataDisplay.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,5 @@
127127
}
128128

129129
.data-cell-char {
130-
width: calc(var(--cell-size) * 0.7) !important;
130+
width: calc(var(--cell-size) * 0.5) !important;
131131
}

media/editor/dataDisplay.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ const Byte: React.FC<{ value: number }> = ({ value }) => (
5252

5353
// Byte cells are square, and show two (hex) characters, but text cells show a
5454
// single character so can be narrower--by this constant multiplier.
55-
const textCellWidth = 0.7;
55+
// (must match value at dataDisplay.css#.data-cell-char)
56+
const textCellWidth = 0.5;
5657

5758
const DataCellGroup: React.FC<React.HTMLAttributes<HTMLDivElement>> = ({ children, ...props }) => (
5859
<div className={style.dataCellGroup} {...props}>

0 commit comments

Comments
 (0)