Skip to content

Commit

Permalink
Update default example input value
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Sep 2, 2024
1 parent dbb9d57 commit 940f11f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions example/src/testConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const EXAMPLE_CONTENT = [
'@here',
'@[email protected]',
'#mention-report',
'![demo image](https://picsum.photos/id/1069/200/300)',
].join('\n');

const INPUT_ID = 'MarkdownInput_Example';
Expand Down
4 changes: 2 additions & 2 deletions src/styleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function makeDefaultMarkdownStyle(): MarkdownStyle {
backgroundColor: 'pink',
},
inlineImage: {
maxWidth: 200,
maxHeight: 200,
maxWidth: 150,
maxHeight: 150,
marginTop: 5,
marginBottom: 0,
},
Expand Down
2 changes: 1 addition & 1 deletion src/web/inputElements/inlineImage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {HTMLMarkdownElement, MarkdownTextInputElement} from '../../MarkdownTextInput.web';
import type {MarkdownRange} from '../../commonTypes';
import {parseStyleToNumber} from '../../styleUtils';
import type {PartialMarkdownStyle} from '../../styleUtils';
import type {MarkdownRange} from '../utils/parserUtils';
import type {TreeNode} from '../utils/treeUtils';
import {createLoadingIndicator} from './loadingIndicator';

Expand Down

0 comments on commit 940f11f

Please sign in to comment.