From fe476a319e1768a929e326e87a54b10bc5e4f402 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 4 Nov 2022 11:27:39 -0500 Subject: [PATCH] Fixed: Truncate custom format card tags --- .../Settings/CustomFormats/CustomFormats/CustomFormat.css | 6 ++++++ .../Settings/CustomFormats/CustomFormats/CustomFormat.js | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.css b/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.css index ed030aa80..ae74adcce 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.css +++ b/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.css @@ -36,3 +36,9 @@ margin: 0; border: none; } + +.label { + composes: label from '~Components/Label.css'; + + max-width: 100%; +} diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js b/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js index 7e77c27c8..e981ca3c2 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js +++ b/frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js @@ -1,5 +1,6 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; +import MiddleTruncate from 'react-middle-truncate'; import Card from 'Components/Card'; import Label from 'Components/Label'; import IconButton from 'Components/Link/IconButton'; @@ -123,10 +124,15 @@ class CustomFormat extends Component { return ( ); })