Skip to content

Commit 4fd23eb

Browse files
committed
Linting and padding and styling
1 parent 3fd745d commit 4fd23eb

1 file changed

Lines changed: 48 additions & 10 deletions

File tree

src/components/CaseViewer.tsx

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Layout, Menu, Select } from 'antd'
1+
import { Layout, Menu, Select, Tag } from 'antd'
22
// skipcq: JS-C1003
33
import * as dcmjs from 'dcmjs'
44
// skipcq: JS-C1003
@@ -421,7 +421,7 @@ function ParametrizedSlideViewer({
421421
style={{
422422
borderInlineEnd: 0,
423423
background: 'none',
424-
marginTop: 10,
424+
marginTop: 8,
425425
}}
426426
>
427427
<Menu.SubMenu key="annotation-groups" title="Annotation Groups">
@@ -469,17 +469,55 @@ function ParametrizedSlideViewer({
469469
<div>
470470
<div
471471
style={{
472-
fontWeight: 600,
473-
marginBottom: 8,
474-
color: 'rgba(0,0,0,0.85)',
475-
padding: '12px 12px 0 12px',
472+
display: 'flex',
473+
flexDirection: 'column',
474+
alignItems: 'flex-start',
475+
gap: 14,
476+
padding: '22px 14px 18px',
477+
borderBottom: '1px solid rgba(0, 0, 0, 0.07)',
476478
}}
477479
>
478-
viv preview
480+
<Tag
481+
style={{
482+
margin: 0,
483+
border: 'none',
484+
borderRadius: 999,
485+
fontSize: 10,
486+
fontWeight: 800,
487+
letterSpacing: '0.1em',
488+
textTransform: 'uppercase',
489+
padding: '7px 18px',
490+
lineHeight: 1.25,
491+
height: 'auto',
492+
background:
493+
'linear-gradient(140deg, #4338ca 0%, #6d28d9 48%, #7e22ce 100%)',
494+
color: '#fff',
495+
boxShadow:
496+
'inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 4px rgba(67, 56, 202, 0.18), 0 8px 20px rgba(109, 40, 217, 0.22)',
497+
}}
498+
>
499+
Viv preview
500+
</Tag>
501+
<p
502+
style={{
503+
margin: 0,
504+
width: '100%',
505+
padding: '13px 16px',
506+
fontSize: 12,
507+
lineHeight: 1.6,
508+
color: 'rgba(0, 0, 0, 0.78)',
509+
background:
510+
'linear-gradient(100deg, rgba(67, 56, 202, 0.09) 0%, rgba(126, 34, 206, 0.05) 52%, rgba(255, 255, 255, 0) 100%)',
511+
borderRadius: 10,
512+
border: '1px solid rgba(109, 40, 217, 0.14)',
513+
borderLeftWidth: 4,
514+
borderLeftColor: '#6d28d9',
515+
boxSizing: 'border-box',
516+
}}
517+
>
518+
Only bulk simple annotations are supported in this preview!
519+
</p>
479520
</div>
480-
<p style={{ marginBottom: 12, padding: '0 12px 12px 12px' }}>
481-
Only bulk simple annotations are supported in this preview!
482-
</p>
483521
{vivAnnotationGroupPanel}
484522
</div>,
485523
)

0 commit comments

Comments
 (0)