Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3379802
D3703.id11368.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D3703.id11368.diff
View Options
diff --git a/web/modals/threads/color-selector.css b/web/modals/threads/color-selector.css
--- a/web/modals/threads/color-selector.css
+++ b/web/modals/threads/color-selector.css
@@ -1,14 +1,11 @@
div.container {
- display: flex;
- flex-direction: column;
- width: 100%;
-}
-
-div.row {
display: flex;
flex-direction: row;
+ flex-wrap: wrap;
align-items: center;
- justify-content: space-between;
+ justify-content: center;
+ column-gap: 12px;
+ row-gap: 6px;
width: 100%;
padding: 6px 0;
}
diff --git a/web/modals/threads/color-selector.react.js b/web/modals/threads/color-selector.react.js
--- a/web/modals/threads/color-selector.react.js
+++ b/web/modals/threads/color-selector.react.js
@@ -16,60 +16,56 @@
return (
<div className={css.container}>
- <div className={css.row}>
- <ColorSelectorButton
- color={selectedThreadColors[0]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- <ColorSelectorButton
- color={selectedThreadColors[1]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- <ColorSelectorButton
- color={selectedThreadColors[2]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- <ColorSelectorButton
- color={selectedThreadColors[3]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- <ColorSelectorButton
- color={selectedThreadColors[4]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- </div>
- <div className={css.row}>
- <ColorSelectorButton
- color={selectedThreadColors[5]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- <ColorSelectorButton
- color={selectedThreadColors[6]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- <ColorSelectorButton
- color={selectedThreadColors[7]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- <ColorSelectorButton
- color={selectedThreadColors[8]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- <ColorSelectorButton
- color={selectedThreadColors[9]}
- currentColor={currentColor}
- onColorSelection={onColorSelection}
- />
- </div>
+ <ColorSelectorButton
+ color={selectedThreadColors[0]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[1]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[2]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[3]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[4]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[5]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[6]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[7]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[8]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
+ <ColorSelectorButton
+ color={selectedThreadColors[9]}
+ currentColor={currentColor}
+ onColorSelection={onColorSelection}
+ />
</div>
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 7:19 PM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594675
Default Alt Text
D3703.id11368.diff (4 KB)
Attached To
Mode
D3703: [web] Use `flex-wrap` to lay out `ColorSelectorButton`s in `ColorSelector`
Attached
Detach File
Event Timeline
Log In to Comment