Commit 22ca229 Douglas Fabris
authored
1 parent 79405d3 commit 22ca229 Copy full SHA for 22ca229
File tree 3 files changed +55
-9
lines changed
3 files changed +55
-9
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ declare module '@rocket.chat/fuselage' {
142
142
143
143
elevation ?: '0' | '1' | '2' ;
144
144
invisible ?: boolean ;
145
- withRichContent ?: boolean ;
145
+ withRichContent ?: boolean | string ;
146
146
withTruncatedText ?: boolean ;
147
147
size ?: CSSProperties [ 'blockSize' ] ;
148
148
minSize ?: CSSProperties [ 'blockSize' ] ;
Original file line number Diff line number Diff line change @@ -52,14 +52,22 @@ export const useBoxOnlyProps = (props) => {
52
52
}
53
53
54
54
if ( props . withRichContent ) {
55
- props . className = prependClassName (
56
- props . className ,
57
- 'rcx-box--with-inline-elements'
58
- ) ;
59
- props . className = prependClassName (
60
- props . className ,
61
- 'rcx-box--with-block-elements'
62
- ) ;
55
+ if ( props . withRichContent === 'inlineWithoutBreaks' ) {
56
+ props . className = prependClassName (
57
+ props . className ,
58
+ 'rcx-box--with-inline-elements'
59
+ ) ;
60
+ } else {
61
+ props . className = prependClassName (
62
+ props . className ,
63
+ 'rcx-box--with-inline-elements'
64
+ ) ;
65
+
66
+ props . className = prependClassName (
67
+ props . className ,
68
+ 'rcx-box--with-block-elements'
69
+ ) ;
70
+ }
63
71
}
64
72
65
73
delete props . withRichContent ;
Original file line number Diff line number Diff line change 101
101
}
102
102
}
103
103
104
+ ul ,
105
+ ol {
106
+ display : inline-flex ;
107
+ }
108
+
109
+ li {
110
+ display : list-item ;
111
+
112
+ margin-inline-start : lengths .margin (24 );
113
+ margin-inline-end : lengths .margin (8 );
114
+
115
+ & :first-child {
116
+ margin-inline-start : lengths .margin (16 );
117
+ }
118
+ }
119
+
120
+ ul {
121
+ list-style-type : disc ;
122
+
123
+ span {
124
+ margin-inline-end : lengths .margin (8 );
125
+ }
126
+
127
+ input {
128
+ vertical-align : middle ;
129
+ }
130
+ }
131
+
132
+ ol {
133
+ list-style-type : decimal ;
134
+ }
135
+
104
136
code {
105
137
display : inline ;
106
138
288
320
li {
289
321
display : list-item ;
290
322
323
+ margin-inline-start : lengths .margin (0 );
324
+
291
325
text-align : inherit ;
292
326
293
327
color : inherit ;
294
328
295
329
font : inherit ;
330
+
331
+ & :first-child {
332
+ margin-inline-start : lengths .margin (0 );
333
+ }
296
334
}
297
335
298
336
pre {
You can’t perform that action at this time.
0 commit comments