add ellipsis to org name in settings
This commit is contained in:
parent
03be391fa3
commit
2dcecfbf79
|
|
@ -50,6 +50,13 @@ export const hideScrollbar = css`
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
export const addEllipsisToTextBlock = css`
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
display: block;
|
||||||
|
`;
|
||||||
|
|
||||||
export const scrollbarDark = css`
|
export const scrollbarDark = css`
|
||||||
scrollbar-color: ${(props) => props.theme.colors.paneCard}
|
scrollbar-color: ${(props) => props.theme.colors.paneCard}
|
||||||
${(props) => props.theme.colors.paneBG};
|
${(props) => props.theme.colors.paneBG};
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import { connect, useDispatch, useSelector } from "react-redux";
|
||||||
import { useLocation } from "react-router-dom";
|
import { useLocation } from "react-router-dom";
|
||||||
import { AppState } from "reducers";
|
import { AppState } from "reducers";
|
||||||
import { Card, Classes as BlueprintClasses, Dialog } from "@blueprintjs/core";
|
import { Card, Classes as BlueprintClasses, Dialog } from "@blueprintjs/core";
|
||||||
|
import { addEllipsisToTextBlock } from "constants/DefaultTheme";
|
||||||
import {
|
import {
|
||||||
getApplicationList,
|
getApplicationList,
|
||||||
getApplicationSearchKeyword,
|
getApplicationSearchKeyword,
|
||||||
|
|
@ -469,10 +470,7 @@ const CreateNewLabel = styled(Text)`
|
||||||
|
|
||||||
const OrgNameElement = styled(Text)`
|
const OrgNameElement = styled(Text)`
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
text-overflow: ellipsis;
|
${addEllipsisToTextBlock}
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
display: block;
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const OrgNameHolder = styled(Text)`
|
const OrgNameHolder = styled(Text)`
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ import IconComponent from "components/designSystems/appsmith/IconComponent";
|
||||||
import { GeneralSettings } from "./General";
|
import { GeneralSettings } from "./General";
|
||||||
import * as Sentry from "@sentry/react";
|
import * as Sentry from "@sentry/react";
|
||||||
import { getAllApplications } from "actions/applicationActions";
|
import { getAllApplications } from "actions/applicationActions";
|
||||||
|
import { addEllipsisToTextBlock } from "constants/DefaultTheme";
|
||||||
const SentryRoute = Sentry.withSentryRouting(Route);
|
const SentryRoute = Sentry.withSentryRouting(Route);
|
||||||
|
|
||||||
const LinkToApplications = styled(Link)`
|
const LinkToApplications = styled(Link)`
|
||||||
|
|
@ -31,6 +32,7 @@ const LinkToApplications = styled(Link)`
|
||||||
svg {
|
svg {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
${addEllipsisToTextBlock}
|
||||||
`;
|
`;
|
||||||
const SettingsWrapper = styled.div`
|
const SettingsWrapper = styled.div`
|
||||||
width: ${(props) => props.theme.pageContentWidth}px;
|
width: ${(props) => props.theme.pageContentWidth}px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user