Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooltip for long names in the settings page of workspace chat #29894

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions src/pages/settings/Report/ReportSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import MenuItemWithTopDescription from '../../../components/MenuItemWithTopDescr
import ROUTES from '../../../ROUTES';
import * as Expensicons from '../../../components/Icon/Expensicons';
import MenuItem from '../../../components/MenuItem';
import DisplayNames from '../../../components/DisplayNames';

const propTypes = {
/** Route params */
Expand Down Expand Up @@ -112,12 +113,13 @@ function ReportSettingsPage(props) {
>
{roomNameLabel}
</Text>
<Text
<DisplayNames
fullTitle={reportName}
tooltipEnabled
numberOfLines={1}
style={[styles.optionAlternateText, styles.pre]}
>
{reportName}
</Text>
textStyles={[styles.optionAlternateText, styles.pre]}
shouldUseFullTitle
/>
</View>
) : (
<MenuItemWithTopDescription
Expand Down Expand Up @@ -162,12 +164,13 @@ function ReportSettingsPage(props) {
>
{translate('workspace.common.workspace')}
</Text>
<Text
<DisplayNames
fullTitle={linkedWorkspace.name}
tooltipEnabled
numberOfLines={1}
style={[styles.optionAlternateText, styles.pre]}
>
{linkedWorkspace.name}
</Text>
textStyles={[styles.optionAlternateText, styles.pre]}
shouldUseFullTitle
/>
</View>
)}
{Boolean(report.visibility) && (
Expand Down
Loading