Skip to content

Commit

Permalink
fix(widgets): truncate widget name
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Feb 28, 2024
1 parent b16ce3d commit adff5ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/BaseFeedWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from '../styles/icons';
import { useAppDispatch } from '../hooks/redux';
import { useSlashfeed } from '../hooks/widgets';
import { truncate } from '../utils/helpers';
import { deleteWidget } from '../store/slices/widgets';
import Dialog from './Dialog';
import SvgImage from './SvgImage';
Expand Down Expand Up @@ -80,7 +81,7 @@ const BaseFeedWidget = ({
</View>

<Text01M style={styles.name} numberOfLines={1}>
{widgetName}
{truncate(widgetName, 18)}
</Text01M>
</View>

Expand Down

0 comments on commit adff5ff

Please sign in to comment.