Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JamalAlabdullah committed Jul 15, 2024
1 parent c3653dc commit ff736ad
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useSelectedFormLayoutWithName, useAppContext } from '../../../hooks';
import { Trans } from 'react-i18next';
import { AUTOSAVE_DEBOUNCE_INTERVAL_MILLISECONDS } from 'app-shared/constants';
import { useDebounce } from 'app-shared/hooks/useDebounce';
import classes from './HiddenExpressionOnLayout.module.css';

export const HiddenExpressionOnLayout = () => {
const { app, org } = useStudioEnvironmentParams();
Expand Down Expand Up @@ -48,7 +49,10 @@ export const HiddenExpressionOnLayout = () => {
<Trans
i18nKey={'right_menu.expressions_property_preview_hidden'}
values={{ componentName: layoutName }}
components={{ bold: <strong /> }}
components={{
componentName: <span className={classes.componentName} />,
textElement: <span className={classes.textElement} />,
}}
/>
}
onChange={(expression) => handleChangeHiddenExpressionOnLayout(expression)}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.textElement {
white-space: nowrap;
}

.componentName {
font-weight: bold;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.textElement {
flex: 1;
white-space: nowrap;
}

Expand Down

0 comments on commit ff736ad

Please sign in to comment.