File tree Expand file tree Collapse file tree
apps/editor/src/views/panel/frontend
packages/ui/src/components/editor/panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 justify-content : space-between ;
55 gap : 4px ;
66 width : 100% ;
7- padding : 4px 14 px ;
7+ padding : 4px 12 px ;
88
99 :global ([data-modern-ui= ' true' ] ) & {
1010 padding : 4px 10px ;
6969 border-radius : 10px ;
7070 border : 1px solid var (--cwc-border-color );
7171 overflow : hidden ;
72- margin : 0 14 px ;
72+ margin : 0 12 px ;
7373 z-index : 1 ;
7474
7575 :global ([data-modern-ui= ' true' ] ) & {
Original file line number Diff line number Diff line change 1919 display : flex ;
2020 flex-direction : column ;
2121 gap : 6px ;
22- margin : 0 14 px ;
22+ margin : 0 12 px ;
2323
2424 :global ([data-modern-ui= ' true' ] ) & {
2525 margin : 0 10px ;
Original file line number Diff line number Diff line change 22 display : flex ;
33 justify-content : space-between ;
44 align-items : center ;
5- padding : 4px 14 px ;
5+ padding : 4px 12 px ;
66 gap : 14px ;
77
88 :global ([data-modern-ui= ' true' ] ) & {
Original file line number Diff line number Diff line change 1818
1919 :global ([data-modern-ui= ' true' ] ) & {
2020 margin : 0 4px ;
21+ padding : 0 6px ;
2122 border-radius : var (--border-radius-small );
2223 }
2324
114115
115116.footer {
116117 display : flex ;
117- padding : 8 px 14 px 10px 14 px ;
118+ padding : 10px 12 px ;
118119
119120 :global ([data-modern-ui= ' true' ] ) & {
120- padding : 8 px 10 px 10 px 10px ;
121+ padding : 9 px 10px ;
121122 }
122123
123124 > button {
Original file line number Diff line number Diff line change 88
99 :global ([data-modern-ui= ' true' ] ) & {
1010 height : 28px ;
11- padding : 0 8px ;
11+ padding : 0 8px 0 6 px ;
1212 margin : 0 4px ;
1313 border-radius : var (--border-radius-small );
1414 }
Original file line number Diff line number Diff line change 2424}
2525
2626.footer {
27- padding : 12px ;
27+ padding : 10 px 12px ;
2828 border-top : 1px solid var (--cwc-border-color-dimmed );
29+
30+ :global ([data-modern-ui= ' true' ] ) & {
31+ padding : 10px 12px 5px 12px ;
32+ }
2933}
Original file line number Diff line number Diff line change 11.tabs {
22 height : 25px ;
3- padding : 0 14 px 0 16 px ;
3+ padding : 0 12 px 0 14 px ;
44 margin-bottom : 8px ;
55 display : flex ;
66 justify-content : space-between ;
Original file line number Diff line number Diff line change 22 display : flex ;
33 flex-direction : column ;
44 width : 100% ;
5+ --task-item-padding-left : 10px ;
6+
7+ :global ([data-modern-ui= ' true' ] ) & {
8+ --task-item-padding-left : 6px ;
9+ }
510}
611
712.tasks {
1116
1217.item {
1318 display : flex ;
14- padding : 1px 10 px 6px 10px ;
19+ padding : 1px 12 px 6px 10px ;
1520 gap : 4px ;
1621 position : relative ;
17- --task-item-padding-left : 10px ;
1822
1923 :global ([data-modern-ui= ' true' ] ) & {
2024 padding : 1px 6px 6px 6px ;
2125 margin : 0 4px ;
2226 border-radius : var (--border-radius-small );
23- --task-item-padding-left : 6px ;
2427 }
2528
2629 & :hover {
169172 position : relative ;
170173 display : flex ;
171174
175+ :global ([data-modern-ui= ' true' ] ) & {
176+ margin : 0 4px ;
177+ border-radius : var (--border-radius-small );
178+ }
179+
172180 & :hover {
173181 background-color : var (--vscode-list-hoverBackground );
174182 }
Original file line number Diff line number Diff line change @@ -127,7 +127,11 @@ export const Tasks: React.FC<Props> = (props) => {
127127 < div
128128 key = { i }
129129 className = { styles [ 'indent-guide' ] }
130- style = { { left : `${ 19 + i * 20 } px` } }
130+ style = { {
131+ left : `calc(var(--task-item-padding-left, 10px) + 9px + ${
132+ i * 20
133+ } px)`
134+ } }
131135 />
132136 ) ) }
133137 < div className = { styles . item__left } >
Original file line number Diff line number Diff line change @@ -84,12 +84,20 @@ export const TaskGroup: React.FC<TaskGroupProps> = (props) => {
8484 < div
8585 key = { i }
8686 className = { styles [ 'indent-guide' ] }
87- style = { { left : `${ 19 + i * 20 } px` } }
87+ style = { {
88+ left : `calc(var(--task-item-padding-left, 10px) + 9px + ${
89+ i * 20
90+ } px)`
91+ } }
8892 />
8993 ) ) }
9094 < button
9195 className = { cn ( styles [ 'add-button' ] , styles [ 'add-button--add' ] ) }
92- style = { { marginLeft : `${ 13 + depth * 20 } px` } }
96+ style = { {
97+ marginLeft : `calc(var(--task-item-padding-left, 10px) + 3px + ${
98+ depth * 20
99+ } px)`
100+ } }
93101 title = "Add task"
94102 />
95103 </ div >
You can’t perform that action at this time.
0 commit comments