Skip to content

Commit

Permalink
fix: trim long text in links in the social networks block (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-romaniuk authored Oct 25, 2023
1 parent 9e338d0 commit cba396c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/account-settings/EditableField.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
import {
Button, Form, StatefulButton,
Expand Down Expand Up @@ -155,7 +156,7 @@ const EditableField = (props) => {
</Button>
) : null}
</div>
<p data-hj-suppress className={isGrayedOut ? 'grayed-out' : null}>{renderValue(value)}</p>
<p data-hj-suppress className={classNames('text-truncate', { 'grayed-out': isGrayedOut })}>{renderValue(value)}</p>
<p className="small text-muted mt-n2">{renderConfirmationMessage() || helpText}</p>
</div>
),
Expand Down

0 comments on commit cba396c

Please sign in to comment.