Skip to content

Commit

Permalink
Merge pull request #31516 from saranshbalyan-1234/fix-long-workspace-…
Browse files Browse the repository at this point in the history
…name-ellipsis

long-workspace-name-fix
  • Loading branch information
bondydaa authored Nov 22, 2023
2 parents b30b555 + a8905fd commit 3583f39
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/pages/ReportDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import participantPropTypes from '@components/participantPropTypes';
import PressableWithoutFeedback from '@components/Pressable/PressableWithoutFeedback';
import RoomHeaderAvatars from '@components/RoomHeaderAvatars';
import ScreenWrapper from '@components/ScreenWrapper';
import Text from '@components/Text';
import withLocalize, {withLocalizePropTypes} from '@components/withLocalize';
import compose from '@libs/compose';
import Navigation from '@libs/Navigation/Navigation';
Expand Down Expand Up @@ -154,12 +153,13 @@ function ReportDetailsPage(props) {
const icons = useMemo(() => ReportUtils.getIcons(props.report, props.personalDetails, props.policies), [props.report, props.personalDetails, props.policies]);

const chatRoomSubtitleText = chatRoomSubtitle ? (
<Text
style={[styles.sidebarLinkText, styles.textLabelSupporting, styles.pre, styles.mt1]}
<DisplayNames
fullTitle={chatRoomSubtitle}
tooltipEnabled
numberOfLines={1}
>
{chatRoomSubtitle}
</Text>
textStyles={[styles.sidebarLinkText, styles.textLabelSupporting, styles.pre, styles.mt1]}
shouldUseFullTitle
/>
) : null;

return (
Expand Down Expand Up @@ -205,6 +205,7 @@ function ReportDetailsPage(props) {
</View>
{isPolicyAdmin ? (
<PressableWithoutFeedback
style={[styles.w100]}
disabled={policy.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={chatRoomSubtitle}
Expand Down

0 comments on commit 3583f39

Please sign in to comment.