From f903649faab805cce425cd6da960580c67c373ed Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 23 Jun 2023 11:20:18 +0200 Subject: [PATCH] fix(ui): move flag description --- .../app/components/FFlags/FFlagItem/FFlagItem.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/app/components/FFlags/FFlagItem/FFlagItem.tsx b/frontend/app/components/FFlags/FFlagItem/FFlagItem.tsx index d56a5a101..d94d9dd7c 100644 --- a/frontend/app/components/FFlags/FFlagItem/FFlagItem.tsx +++ b/frontend/app/components/FFlags/FFlagItem/FFlagItem.tsx @@ -1,6 +1,6 @@ import React from 'react' import FeatureFlag from 'App/mstore/types/FeatureFlag' -import { Icon, Toggler, Link } from 'UI' +import { Icon, Toggler, Link, TextEllipsis } from 'UI' import { useStore } from 'App/mstore'; import { observer } from 'mobx-react-lite'; import { resentOrDate } from 'App/date'; @@ -28,9 +28,15 @@ function FFlagItem({ flag }: { flag: FeatureFlag }) {
-
+
- {flag.flagKey} +
+ {flag.flagKey} + {flag.description + ? ( + + ) : null} +
{flag.isSingleOption ? 'Single Variant' : 'Multivariant'}
@@ -48,7 +54,6 @@ function FFlagItem({ flag }: { flag: FeatureFlag }) { />
- {flag.description ?
{flag.description}
: null}
); }