@fc-components/monaco-editor 0.3.2 → 0.3.3

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.2",
6
+ "version": "0.3.3",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/monaco-editor.esm.js",
package/src/sql/index.tsx CHANGED
@@ -98,11 +98,10 @@ const formatBtnClassName = css`
98
98
  border-radius: 4px;
99
99
  cursor: pointer;
100
100
  color: inherit;
101
- opacity: 0.6;
101
+ opacity: 1;
102
102
  transition: opacity 0.15s;
103
103
 
104
104
  &:hover {
105
- opacity: 1;
106
105
  background: var(--format-btn-hover-bg, rgba(128, 128, 128, 0.15));
107
106
  }
108
107
  `;
@@ -344,19 +343,18 @@ const SqlEditor = forwardRef<SqlEditorHandle, SqlEditorProps>((props, ref) => {
344
343
  title='Format SQL'
345
344
  style={
346
345
  {
347
- '--format-btn-hover-bg':
348
- theme === 'dark' ? 'rgba(255,255,255,0.2)' : 'rgba(128,128,128,0.15)',
346
+ '--format-btn-hover-bg': theme === 'dark' ? 'rgba(255,255,255,0.2)' : 'rgba(128,128,128,0.15)',
349
347
  } as React.CSSProperties
350
348
  }
351
349
  >
352
350
  <svg
353
351
  xmlns='http://www.w3.org/2000/svg'
354
- width='16'
355
- height='16'
352
+ width='12'
353
+ height='12'
356
354
  viewBox='0 0 24 24'
357
355
  fill='none'
358
356
  stroke='currentColor'
359
- strokeWidth='2'
357
+ strokeWidth='1'
360
358
  strokeLinecap='round'
361
359
  strokeLinejoin='round'
362
360
  >