Skip to content

Commit

Permalink
Add break-words to expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowen7 committed Aug 25, 2024
1 parent 88705ff commit a03885b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/editor/features/expression/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Expression: React.FC<Prop> = ({ regex, startIndex, endIndex }) => {
const { t } = useTranslation()
return (
<Cell label={t('Expression')}>
<p className="font-mono text-sm">
<p className="font-mono text-sm break-words leading-6">
<span>{regex.slice(0, startIndex)}</span>
<span className="bg-blue-500/50 rounded py-1">{regex.slice(startIndex, endIndex)}</span>
<span>{regex.slice(endIndex)}</span>
Expand Down

0 comments on commit a03885b

Please sign in to comment.