Skip to content

Commit

Permalink
absorb: align short diff lines with container width
Browse files Browse the repository at this point in the history
Summary:
When there are 2 diff chunks, a short line, and a long line (wider).
The short one's background color might not fill the width of the column.
This change fixes it.

Reviewed By: evangrayk

Differential Revision: D67980845

fbshipit-source-id: 1613c8605424eb01d738aa818d09457320893085
  • Loading branch information
quark-zju authored and facebook-github-bot committed Jan 9, 2025
1 parent 80350f3 commit af423bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/isl/src/stackEdit/ui/AbsorbStackEditPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const styles = stylex.create({
whiteSpace: 'pre-wrap',
fontFamily: 'var(--monospace-fontFamily)',
fontSize: 'var(--editor-font-size)',
// Fill the width when there are long lines in another diff chunk.
flexGrow: 1,
},
absorbEditPathTitle: {
padding: 'var(--halfpad) var(--pad)',
Expand Down

0 comments on commit af423bb

Please sign in to comment.