Skip to content

Commit f58fd0f

Browse files
committed
Adjust padding and alignment in configuration and model provider lists for consistency
1 parent ddac24c commit f58fd0f

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

‎packages/ui/src/components/editor/settings/ConfigurationsList/ConfigurationsList.module.scss‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
.header {
77
display: flex;
8-
padding: 12px 12px 8px 12px;
8+
padding: 12px 12px 8px 16px;
99
align-items: center;
1010
justify-content: space-between;
1111

@@ -56,10 +56,11 @@
5656
}
5757

5858
.empty-message {
59-
flex: 1;
6059
text-align: center;
6160
font-style: italic;
6261
color: var(--cwc-text-color-dimmed);
62+
align-self: flex-start;
63+
flex: 1;
6364
}
6465

6566
.drag-handle {

‎packages/ui/src/components/editor/settings/ModelProviders/ModelProviders.module.scss‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
.header {
77
display: flex;
8-
padding: 12px 12px 8px 12px;
8+
padding: 12px 12px 8px 16px;
99
align-items: center;
1010
justify-content: space-between;
1111

@@ -24,6 +24,7 @@
2424
display: flex;
2525
align-items: center;
2626
height: 40px;
27+
padding: 0 12px;
2728
gap: 12px;
2829

2930
&:nth-child(even) {
@@ -45,10 +46,10 @@
4546
}
4647

4748
.col-drag {
48-
padding: 0 4px 0 14px;
49+
padding: 4px;
4950
display: flex;
5051
align-items: center;
51-
justify-content: center;
52+
height: 100%;
5253
}
5354

5455
.col-name {
@@ -65,18 +66,15 @@
6566

6667
.col-actions {
6768
display: flex;
68-
justify-content: flex-end;
6969
gap: 8px;
70-
padding-right: 8px;
71-
width: 60px;
72-
flex-shrink: 0;
7370
}
7471

7572
.empty-message {
76-
flex: 1;
7773
text-align: center;
7874
font-style: italic;
7975
color: var(--cwc-text-color-dimmed);
76+
align-self: flex-start;
77+
flex: 1;
8078
}
8179

8280
.drag-handle {

‎packages/ui/src/components/editor/settings/ModelProviders/ModelProviders.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const ModelProviders: React.FC<ModelProviders.Props> = (props) => {
101101
) : (
102102
<div className={styles.row}>
103103
<div className={styles['empty-message']}>
104-
No model providers configured.
104+
No model providers found.
105105
</div>
106106
</div>
107107
)}

‎src/examples/math_utils.py‎

Whitespace-only changes.

0 commit comments

Comments
 (0)