Skip to content

Commit eda591c

Browse files
author
radhika
committed
editor background and alignment issue resolved
1 parent 0e7bf7e commit eda591c

File tree

8 files changed

+12
-67
lines changed

8 files changed

+12
-67
lines changed

packages/ui-kit/src/components/editors/monaco-v2/Editor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { IEditor } from './Editor.interface';
55
import MonacoFirecampLangInit, {
66
SetCompletionProvider,
77
} from '../monaco/lang/init';
8-
9-
import '../monaco/sass/MultiLineIFE.sass';
8+
import './sass/Editor.sass';
109

1110
const Editor: FC<IEditor> = ({
1211
value,

packages/ui-kit/src/components/editors/monaco-v2/SingleLineEditor.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import MonacoFirecampLangInit, {
66
SetCompletionProvider,
77
} from '../monaco/lang/init';
88

9-
import '../monaco/sass/SingleLineIFE.sass';
10-
119
type TSLEditor = {
1210
type: 'text' | 'number';
1311
};

packages/ui-kit/src/components/editors/monaco-v2/sass/Editor.sass

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@
55
font-size: 14px
66
left: 66px
77
letter-spacing: 0.2px
8-
font-family: inherit
8+
font-family: inherit
9+
10+
.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input
11+
background-color: transparent !important
12+
13+
.monaco-editor .margin
14+
background-color: var(--focus-level-2) !important

packages/ui-kit/src/components/editors/monaco/sass/FirecampEditor.sass

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/ui-kit/src/components/editors/monaco/sass/MultiLineIFE.sass

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/ui-kit/src/components/editors/monaco/sass/SingleLineIFE.sass

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/ui-kit/src/components/url/components/Url.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Url: FC<IUrl> = ({
2929
fontWeight: 600,
3030
}}
3131
className="without-border without-padding"
32-
height={26}
32+
height={21}
3333
path={id}
3434
type="text"
3535
onEnter={onEnter}

packages/ui-kit/src/components/url/components/UrlBar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ const Prefix: FC<IPrefix> = ({ children, className }) => {
4646

4747
const Body: FC<IBody> = ({ children, className }) => {
4848
return (
49-
<Column className={className} flex={1} overflow="hidden">
49+
<Column className={cx(className, `flex items-center`)} flex={1} overflow="hidden">
50+
<div className="flex-1">
5051
{children}
52+
</div>
5153
</Column>
5254
);
5355
};

0 commit comments

Comments
 (0)