@opensumi/ide-components 2.21.3 → 2.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,6 @@
49
49
  color: @heading-color;
50
50
  font-size: @font-size-lg;
51
51
  line-height: 24px;
52
- word-break: break-word;
53
52
 
54
53
  // https://github.com/ant-design/ant-design/issues/5846#issuecomment-296244140
55
54
  &-single-line-auto-margin {
@@ -205,28 +204,51 @@
205
204
  }
206
205
 
207
206
  .@{notification-prefix-cls}-wrapper {
208
- background: var(--notifications-background) !important;
209
- border-color: var(--notifications-border) !important;
210
- padding: 12px !important;
207
+ background: var(--notifications-background);
208
+ border-color: var(--notifications-border);
209
+ padding: 12px;
211
210
  position: relative;
212
211
 
213
212
  .@{iconfont-css-prefix} {
214
213
  font-size: 12px;
215
- margin-top: 1px;
214
+ margin-top: 0;
215
+ display: flex;
216
+ align-items: center;
217
+ justify-content: center;
216
218
  }
217
219
 
218
220
  .@{notification-prefix-cls}-notice {
219
- &-close,
220
221
  &-message,
221
222
  &-description {
222
- color: var(--notifications-foreground) !important;
223
- font-size: 12px !important;
224
- margin-left: 22px !important;
225
- line-height: 20px !important;
223
+ width: calc(100% - 24px);
224
+ color: var(--notifications-foreground);
225
+ font-size: 12px;
226
+ margin-left: 22px;
227
+ line-height: 20px;
228
+
229
+ // Hacking markdown style
230
+ code {
231
+ display: inline-block;
232
+ word-wrap: break-word;
233
+ overflow: hidden;
234
+ width: 100%;
235
+ text-overflow: ellipsis;
236
+ }
237
+
238
+ p,
239
+ pre {
240
+ margin-bottom: 5px;
241
+ }
226
242
  }
227
243
 
228
244
  &-close {
229
- right: 14px;
245
+ display: flex;
246
+ align-items: center;
247
+ justify-content: center;
248
+ color: var(--notifications-foreground);
249
+ font-size: 12px;
250
+ line-height: 20px;
251
+ right: 18px;
230
252
  top: 12px;
231
253
  }
232
254
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-components",
3
- "version": "2.21.3",
3
+ "version": "2.21.4",
4
4
  "description": "@opensumi/ide-components",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@ant-design/icons": "^4.6.4",
19
- "@opensumi/ide-utils": "2.21.3",
19
+ "@opensumi/ide-utils": "2.21.4",
20
20
  "@types/react-window": "^1.8.5",
21
21
  "fuzzy": "^0.1.3",
22
22
  "lodash": "^4.17.15",
@@ -37,5 +37,5 @@
37
37
  "@opensumi/ide-dev-tool": "^1.3.1",
38
38
  "@types/marked": "^4.0.7"
39
39
  },
40
- "gitHead": "aa739f0406875b42ebefbc1f9c03f92fad26e706"
40
+ "gitHead": "d6077dd539ffbb19593e695f0adeae87644085c4"
41
41
  }