File tree Expand file tree Collapse file tree 3 files changed +281
-167
lines changed
DUUIWeb/src/lib/svelte/components Expand file tree Collapse file tree 3 files changed +281
-167
lines changed Original file line number Diff line number Diff line change 1111
1212 const toastStore = getToastStore ()
1313
14- const inputContainerClass = ' flex flex-wrap gap-3 px-2 pb-1 m-4'
14+ const inputContainerClass =
15+ ' relative flex flex-wrap gap-3 px-2 pb-1 m-4 bg-surface-100 rounded-md p-2'
1516 const outputContainerClass =
16- ' flex flex-wrap items-end justify-end gap-3 px-2 pb-1 m-4'
17+ ' relative flex flex-wrap items-end justify-end gap-3 px-2 pb-1 m-4 bg-surface-100 rounded-md p-2 '
1718
1819 const inputChipClass =
1920 ' uima-chip-input relative inline-flex items-center px-4 py-2 pr-8 variant-soft-primary border text-sm rounded-md'
2829 ? inputContainerClass
2930 : outputContainerClass }
3031>
32+ <span
33+ class ={connector === ' input'
34+ ? ' absolute -top-3 left-3 bg-surface-100 px-2 text-xs rounded-md text-surface-400 font-medium'
35+ : ' absolute -top-3 right-3 bg-surface-100 px-2 text-xs rounded-md text-surface-400 font-medium' }
36+ >
37+ {connector === ' input' ? ' Input' : ' Output' }
38+ </span >
3139 {#each values as value (value )}
3240 {@const parts = splitClass (value )}
3341 <div
3644 data-component-id ={componentId }
3745 data-type ={value }
3846 >
39- <div class =" flex flex-col items-start " >
40- <span class ="text-sm font-semibold " >{parts .simple }</span >
47+ <div class =" relative inline-block pb-3 " >
48+ <span class ="block text-[0.9rem] " >{parts .simple }</span >
4149 {#if parts .pkg }
42- <span class ="text-[0.7rem]" >{parts .pkg }</span >
50+ <span
51+ class ="absolute left-0 block w-full text-[0.5rem] truncate" title ={parts .pkg }
52+ >
53+ {parts .pkg }
54+ </span >
4355 {/if }
4456 </div >
4557 <button
You can’t perform that action at this time.
0 commit comments