@fc-components/monaco-editor 0.3.4 → 0.3.5

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.
@@ -3917,7 +3917,15 @@ var SqlEditor = /*#__PURE__*/forwardRef(function (props, ref) {
3917
3917
  alwaysConsumeMouseWheel: false
3918
3918
  }
3919
3919
  }
3920
- })), enableFormat && (renderFormatButton ? renderFormatButton(handleFormat) : React.createElement("button", {
3920
+ })), enableFormat && (renderFormatButton ? React.createElement("div", {
3921
+ style: {
3922
+ position: 'absolute',
3923
+ top: 4,
3924
+ right: 4,
3925
+ zIndex: 10
3926
+ },
3927
+ onClick: handleFormat
3928
+ }, renderFormatButton(handleFormat)) : React.createElement("button", {
3921
3929
  onClick: handleFormat,
3922
3930
  className: formatBtnClassName,
3923
3931
  title: 'Format SQL',