@@ -3,6 +3,7 @@ import EditorViewer from 'components/common/EditorViewer/EditorViewer';
33import BytesFormatted from 'components/common/BytesFormatted/BytesFormatted' ;
44import ClipboardIcon from 'components/common/Icons/ClipboardIcon' ;
55import { Button } from 'components/common/Button/Button' ;
6+ import Flexbox from 'components/common/FlexBox/FlexBox' ;
67import { SchemaType , TopicMessageTimestampTypeEnum } from 'generated-sources' ;
78import { formatTimestamp } from 'lib/dateTimeHelpers' ;
89import useDataSaver from 'lib/hooks/useDataSaver' ;
@@ -76,35 +77,41 @@ const MessageContent: React.FC<MessageContentProps> = ({
7677 < S . Section >
7778 < S . ContentBox >
7879 < S . Tabs >
79- < S . Tab
80- type = "button"
81- $active = { activeTab === 'key' }
82- onClick = { handleKeyTabClick }
83- >
84- Key
85- </ S . Tab >
86- < S . Tab
87- $active = { activeTab === 'content' }
88- type = "button"
89- onClick = { handleContentTabClick }
90- >
91- Value
92- </ S . Tab >
93- < S . Tab
94- $active = { activeTab === 'headers' }
95- type = "button"
96- onClick = { handleHeadersTabClick }
97- >
98- Headers
99- </ S . Tab >
100- < Button
101- type = "button"
102- buttonSize = "M"
103- buttonType = "text"
104- onClick = { copyToClipboard }
105- >
106- < ClipboardIcon />
107- </ Button >
80+ < Flexbox justifyContent = "space-between" >
81+ < Flexbox >
82+ < S . Tab
83+ type = "button"
84+ $active = { activeTab === 'key' }
85+ onClick = { handleKeyTabClick }
86+ >
87+ Key
88+ </ S . Tab >
89+ < S . Tab
90+ $active = { activeTab === 'content' }
91+ type = "button"
92+ onClick = { handleContentTabClick }
93+ >
94+ Value
95+ </ S . Tab >
96+ < S . Tab
97+ $active = { activeTab === 'headers' }
98+ type = "button"
99+ onClick = { handleHeadersTabClick }
100+ >
101+ Headers
102+ </ S . Tab >
103+ </ Flexbox >
104+ < Flexbox >
105+ < Button
106+ type = "button"
107+ buttonSize = "M"
108+ buttonType = "text"
109+ onClick = { copyToClipboard }
110+ >
111+ < ClipboardIcon />
112+ </ Button >
113+ </ Flexbox >
114+ </ Flexbox >
108115 </ S . Tabs >
109116 < EditorViewer
110117 data = { tabContent }
0 commit comments