Skip to content

Commit 5ba76db

Browse files
committed
style: adjust margins and alignment in form designer and properties tabs
1 parent 09edd8b commit 5ba76db

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

shesha-reactjs/src/components/formDesigner/styles/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export const useMainStyles = createStyles(({ css, cx, token, prefixCls, iconPref
202202
align-items: center;
203203
justify-content: flex-start;
204204
margin-top: -10px;
205+
margin-right: 32px;
205206
}
206207
207208
.${shaDesignerToolbarLeft} {

shesha-reactjs/src/designer-components/_settings/styles/styles.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,9 @@ export const useStyles = createStyles(({ css, cx, responsive, token }) => {
3535
position: relative;
3636
3737
+.ant-form-item-tooltip {
38-
align-self: end !important;
39-
position: relative;
40-
bottom: -2px;
41-
margin-right: 8px;
42-
}
43-
44-
+.sha-required-mark {
38+
align-self: end !important;
4539
position: relative;
46-
bottom: -8px;
40+
top: 4px;
4741
}
4842
`);
4943

shesha-reactjs/src/designer-components/propertiesTabs/style.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createStyles } from '@/styles';
22

3-
export const useStyles = createStyles(({ css, cx }) => {
3+
export const useStyles = createStyles(({ css, cx , token}) => {
44
const searchField = cx(css`
55
width: 100%;
66
background: #fff;
@@ -29,6 +29,15 @@ export const useStyles = createStyles(({ css, cx }) => {
2929
white-space: nowrap;
3030
}
3131
}
32+
33+
* > .sha-required-mark {
34+
margin-left: 4px;
35+
color: ${token.colorErrorText};
36+
font-family: ${token.fontFamily};
37+
line-height: 1;
38+
position: relative;
39+
top: 8px;
40+
}
3241
`);
3342

3443
return {

0 commit comments

Comments
 (0)