Skip to content

Commit 5031292

Browse files
authored
fix: fix color thumb vertical alignment (#4207)
## Description Noticed this 1px misalignment because display inline-block is affected by line-height. <img width="55" alt="image" src="https://github.com/user-attachments/assets/729e1a37-be3b-44dd-a672-855e6d87f4ad"> <img width="50" alt="image" src="https://github.com/user-attachments/assets/f9930925-800c-4930-8a75-12383d8babe3"> ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
1 parent 9fd5ce0 commit 5031292

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/builder/app/builder/features/style-panel/shared/color-thumb.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const lerpColor = (a: RgbaColor, b: RgbaColor, t: number) => {
4545
};
4646

4747
const thumbStyle = css({
48+
display: "block",
4849
width: theme.spacing[10],
4950
height: theme.spacing[10],
5051
backgroundBlendMode: "difference",

0 commit comments

Comments
 (0)