diff --git a/client/src/components/leftSidebar/topLeftLogoAndTitle.js b/client/src/components/leftSidebar/topLeftLogoAndTitle.js index 1efebed3..87802674 100644 --- a/client/src/components/leftSidebar/topLeftLogoAndTitle.js +++ b/client/src/components/leftSidebar/topLeftLogoAndTitle.js @@ -3,6 +3,7 @@ import React from "react"; import { connect } from "react-redux"; import * as globals from "../../globals"; import Logo from "../framework/logo"; +import Truncate from "../util/truncate"; @connect((state) => ({ datasetTitle: state.config?.displayNames?.dataset ?? "", @@ -13,16 +14,8 @@ import Logo from "../framework/logo"; class LeftSideBar extends React.Component { render() { const { datasetTitle, aboutURL } = this.props; - - const displayTitle = - datasetTitle.length > globals.datasetTitleMaxCharacterCount - ? `${datasetTitle.substring( - 0, - Math.floor(globals.datasetTitleMaxCharacterCount / 2) - )}…${datasetTitle.slice( - -Math.floor(globals.datasetTitleMaxCharacterCount / 2) - )}` - : datasetTitle; + const width = 190; + const fontSize = 14; return (