Skip to content

Commit afcfbcb

Browse files
authored
Merge pull request #5747 from parca-dev/alpha-sandwich
ui: Add 'alpha' label to Sandwich view
2 parents eec2086 + f050bb6 commit afcfbcb

File tree

2 files changed

+13
-3
lines changed
  • ui/packages/shared/profile/src

2 files changed

+13
-3
lines changed

ui/packages/shared/profile/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const ContextMenu = ({
144144
const nonEmptyValuesToCopy = valuesToCopy.filter(({value}) => value !== '');
145145

146146
return (
147-
<Menu id={menuId} theme={isDarkMode ? 'dark' : ''}>
147+
<Menu id={menuId} theme={isDarkMode ? 'dark' : ''} className="w-[250px]">
148148
<Item
149149
id="view-source-file"
150150
onClick={handleViewSourceFile}
@@ -187,7 +187,12 @@ const ContextMenu = ({
187187
>
188188
<div className="flex w-full items-center gap-2">
189189
<Icon icon="tdesign:sandwich-filled" />
190-
<div>Show in sandwich</div>
190+
<div className="relative">
191+
Show in sandwich
192+
<span className="absolute top-[-2px] text-xs lowercase text-red-500">
193+
&nbsp;alpha
194+
</span>
195+
</div>
191196
</div>
192197
</Item>
193198
)}

ui/packages/shared/profile/src/ProfileView/components/ViewSelector/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ const ViewSelector = ({profileSource}: Props): JSX.Element => {
4848
if (enableSandwichView === true) {
4949
allItems.push({
5050
key: 'sandwich',
51-
label: 'sandwich',
51+
label: (
52+
<span className="relative">
53+
Sandwich
54+
<span className="absolute top-[-2px] text-xs lowercase text-red-500">&nbsp;alpha</span>
55+
</span>
56+
),
5257
canBeSelected: !dashboardItems.includes('sandwich'),
5358
});
5459
}

0 commit comments

Comments
 (0)