• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alkem-io / client-web / #7357

16 Apr 2024 02:01PM UTC coverage: 5.785%. First build
#7357

Pull #5935

travis-ci

Pull Request #5935: Set full width to images in WrapperMarkdown

185 of 8920 branches covered (2.07%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

1279 of 16387 relevant lines covered (7.8%)

0.19 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

16.67
/src/core/ui/markdown/components/MarkdownMedia.tsx
1
import { ElementType } from 'react';
2
import { Box } from '@mui/material';
3
import { useMarkdownOptions } from '../MarkdownOptionsContext';
4
import type { Element } from 'hast';
5

6
interface ReactMarkdownProps {
1✔
7
  node?: Element;
×
8
}
9

×
10
const MarkdownMedia = ({ node, ...props }: ReactMarkdownProps) => {
11
  const { multiline } = useMarkdownOptions();
12

13
  return (
×
NEW
14
    <Box
×
15
      component={node?.tagName as ElementType}
16
      maxWidth="100%"
17
      maxHeight={multiline ? undefined : '1em'}
18
      borderRadius={theme => theme.spacing(0.6)}
19
      {...props}
20
    />
21
  );
22
};
23

24
export default MarkdownMedia;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc