diff --git a/dist/index.mjs b/dist/index.mjs
index 715928e45..c72e44abf 100644
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -51691,8 +51691,22 @@ const pfe = ({
] }) : /* @__PURE__ */ f.jsxs(G, { children: [
/* @__PURE__ */ f.jsx(be, { minWidth: "max-content", gray: !0, children: g }),
/* @__PURE__ */ f.jsxs(G, { children: [
- /* @__PURE__ */ f.jsx(be, { px: "5px", sx: Uw, children: Yw(i, O, o) }),
- !o && ((m = i[0]) == null ? void 0 : m.additionalText) && u && /* @__PURE__ */ f.jsx(be, { gray: !0, children: i[0].additionalText })
+ /* @__PURE__ */ f.jsx(
+ be,
+ {
+ px: "5px",
+ sx: { ...Uw, flex: "none", maxWidth: "100px" },
+ children: Yw(i, O, o)
+ }
+ ),
+ !o && ((m = i[0]) == null ? void 0 : m.additionalText) && u && /* @__PURE__ */ f.jsx(
+ be,
+ {
+ gray: !0,
+ sx: { overflow: "hidden", textOverflow: "ellipsis" },
+ children: i[0].additionalText
+ }
+ )
] })
] }),
/* @__PURE__ */ f.jsxs(G, { children: [
diff --git a/src/components/select2/label.tsx b/src/components/select2/label.tsx
index bbe869d68..50d111bc6 100644
--- a/src/components/select2/label.tsx
+++ b/src/components/select2/label.tsx
@@ -94,11 +94,19 @@ const SelectLabel = forwardRef(
{content}
-
+
{getLabelText(value, options, isMulti)}
{!isMulti && value[0]?.additionalText && needSecondaryText && (
- {value[0].additionalText}
+
+ {value[0].additionalText}
+
)}
diff --git a/src/components/select2/stories.tsx b/src/components/select2/stories.tsx
index 76f0e0471..5a1484cc4 100644
--- a/src/components/select2/stories.tsx
+++ b/src/components/select2/stories.tsx
@@ -4,7 +4,7 @@ import { StoryObj, Meta } from '@storybook/react';
import { Box } from 'rebass';
import Select from './index';
-import { Button, Popup, RadioGroup, Value } from '../../index';
+import { Button, RadioGroup, Value } from '../../index';
import Labeling from '../typography/labeling';
import { SelectOpt } from './types';
@@ -134,11 +134,15 @@ const options = [
),
},
- { key: 3, label: 'Three', additionalText: 'add_three' },
+ {
+ key: 3,
+ label: 'Three_Thats_loooong',
+ additionalText: 'add_three_thats_veryyyyy_loooooong',
+ },
{
key: 4,
label: 'Four',
- additionalText: 'add_four',
+ additionalText: 'add_four_thats_veryyyyy_loooooong',
additionalComponent: text,
},
] as SelectOpt[];
@@ -190,28 +194,27 @@ export const Default: StoryObj = {
};
return (
- {}}>
-
-
-
+
+
);
},
};