[issues-5528] UI improvements (#5629)

This commit is contained in:
yug-shah0106 2022-06-24 21:05:51 +05:30 committed by GitHub
parent 3e18f842e1
commit d7da180503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 150 additions and 144 deletions

View File

@ -265,6 +265,8 @@ const AddService = ({
}; };
return ( return (
<div className="tw-self-center">
{' '}
<PageLayout <PageLayout
classes="tw-max-w-full-hd tw-h-full tw-pt-4" classes="tw-max-w-full-hd tw-h-full tw-pt-4"
header={<TitleBreadcrumb titleLinks={slashedBreadcrumb} />} header={<TitleBreadcrumb titleLinks={slashedBreadcrumb} />}
@ -297,6 +299,7 @@ const AddService = ({
)} )}
</div> </div>
</PageLayout> </PageLayout>
</div>
); );
}; };

View File

@ -657,8 +657,8 @@ const Explore: React.FC<ExploreProps> = ({
const fetchLeftPanel = () => { const fetchLeftPanel = () => {
return ( return (
<div className="tw-h-full">
<Card <Card
className="tw-h-full"
data-testid="data-summary-container" data-testid="data-summary-container"
style={{ ...leftPanelAntCardStyle, marginTop: '16px' }}> style={{ ...leftPanelAntCardStyle, marginTop: '16px' }}>
<Fragment> <Fragment>
@ -688,7 +688,6 @@ const Explore: React.FC<ExploreProps> = ({
)} )}
</Fragment> </Fragment>
</Card> </Card>
</div>
); );
}; };

View File

@ -87,7 +87,7 @@ const ServiceConfig = ({
return ( return (
<div className="tw-bg-white tw-h-full"> <div className="tw-bg-white tw-h-full">
<div <div
className="tw-max-w-xl tw-mx-auto tw-pb-6" className="tw-max-w-xl tw-pb-6"
data-testid="service-config" data-testid="service-config"
id="serviceConfig"> id="serviceConfig">
<div className="tw-mx-auto">{getDynamicFields()}</div> <div className="tw-mx-auto">{getDynamicFields()}</div>

View File

@ -95,7 +95,7 @@ const ServiceConnectionDetails = ({
return ( return (
<div className="tw-w-1/2 tw-flex tw-nowrap tw-mb-3" key={key}> <div className="tw-w-1/2 tw-flex tw-nowrap tw-mb-3" key={key}>
<div className="tw-w-1/3 tw-flex"> <div className="tw-w-1/3 tw-flex">
<p className="tw-text-gray-400 tw-m-0">{title || key}:</p> <p className="tw-text-gray-500 tw-m-0">{title || key}:</p>
<PopOver <PopOver
delay={0} delay={0}
position="bottom" position="bottom"

View File

@ -132,7 +132,7 @@ const TeamsAndUsers = ({
currentTeam?.name currentTeam?.name
)}`}> )}`}>
<p <p
className="tag-category label-category tw-self-center tw-truncate tw-w-52" className="tag-category label-category tw-self-center tw-truncate"
data-testid="team-name" data-testid="team-name"
title={team.displayName ?? team.name}> title={team.displayName ?? team.name}>
{team.displayName ?? team.name} {team.displayName ?? team.name}
@ -185,7 +185,7 @@ const TeamsAndUsers = ({
activeUserTab activeUserTab
)}`}> )}`}>
<p <p
className="tag-category label-category tw-self-center tw-truncate tw-w-52" className="tag-category label-category tw-self-center tw-truncate"
data-testid="user-type" data-testid="user-type"
title={capitalize(user.name)}> title={capitalize(user.name)}>
{capitalize(user.name)} {capitalize(user.name)}

View File

@ -241,6 +241,7 @@ const AddIngestionPage = () => {
); );
} else { } else {
return ( return (
<div className="tw-self-center">
<PageLayout <PageLayout
classes="tw-max-w-full-hd tw-h-full tw-pt-4" classes="tw-max-w-full-hd tw-h-full tw-pt-4"
header={<TitleBreadcrumb titleLinks={slashedBreadcrumb} />} header={<TitleBreadcrumb titleLinks={slashedBreadcrumb} />}
@ -278,6 +279,7 @@ const AddIngestionPage = () => {
/> />
</div> </div>
</PageLayout> </PageLayout>
</div>
); );
} }
}; };

View File

@ -274,6 +274,7 @@ const EditIngestionPage = () => {
return <ErrorPlaceHolder>{errorMsg}</ErrorPlaceHolder>; return <ErrorPlaceHolder>{errorMsg}</ErrorPlaceHolder>;
} else { } else {
return ( return (
<div className="tw-self-center">
<PageLayout <PageLayout
classes="tw-max-w-full-hd tw-h-full tw-pt-4" classes="tw-max-w-full-hd tw-h-full tw-pt-4"
header={<TitleBreadcrumb titleLinks={slashedBreadcrumb} />} header={<TitleBreadcrumb titleLinks={slashedBreadcrumb} />}
@ -313,6 +314,7 @@ const EditIngestionPage = () => {
/> />
</div> </div>
</PageLayout> </PageLayout>
</div>
); );
} }
}; };