Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: small UI issues in overview page #2027

Merged
merged 9 commits into from
Sep 9, 2024
5 changes: 5 additions & 0 deletions agenta-web/src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({
},
menuItem: {
textOverflow: "initial !important",
display: "flex !important",
alignItems: "center",
},
avatarContainer: {
display: "flex",
Expand All @@ -113,6 +115,9 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({
menuHeader: {
padding: `${theme.paddingXS}px ${theme.padding}px`,
color: theme.colorTextDescription,
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
},
}))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,35 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({
},
},
statFlag: {
lineHeight: theme.lineHeight,
"& .ant-statistic-content-value": {
fontSize: 16,
fontSize: theme.fontSize,
color: theme.colorError,
},
"& .ant-statistic-content-suffix": {
fontSize: 16,
fontSize: theme.fontSize,
color: theme.colorError,
},
},
stat: {
lineHeight: theme.lineHeight,
"& .ant-statistic-content-value": {
fontSize: 16,
fontSize: theme.fontSize,
color: theme.colorPrimary,
},
"& .ant-statistic-content-suffix": {
fontSize: 16,
fontSize: theme.fontSize,
color: theme.colorPrimary,
},
},
statGood: {
lineHeight: theme.lineHeight,
"& .ant-statistic-content-value": {
fontSize: 16,
fontSize: theme.fontSize,
color: theme.colorSuccess,
},
"& .ant-statistic-content-suffix": {
fontSize: 16,
fontSize: theme.fontSize,
color: theme.colorSuccess,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const AutomaticEvalOverview = () => {
<Popover
key={index}
placement="bottom"
trigger={"click"}
trigger={"hover"}
aakrem marked this conversation as resolved.
Show resolved Hide resolved
arrow={false}
content={
<div className="w-[256px]">
Expand All @@ -274,7 +274,7 @@ const AutomaticEvalOverview = () => {
<Popover
key={index}
placement="bottom"
trigger={"click"}
trigger={"hover"}
arrow={false}
content={
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({
},
cardContainer: {
display: "flex",
gap: theme.paddingXS,
gap: theme.padding,
"& .ant-card": {
width: "100%",
position: "relative",
Expand Down Expand Up @@ -156,7 +156,10 @@ const DeploymentOverview = ({
env={env}
/>
) : (
<Tag className="w-fit" onClick={(e) => e.stopPropagation()}>
<Tag
className="w-fit py-[1px] px-2"
onClick={(e) => e.stopPropagation()}
>
No deployment
</Tag>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({
},
},
stat: {
lineHeight: theme.lineHeight,
"& .ant-statistic-content-value": {
fontSize: 16,
fontSize: theme.fontSize,
color: theme.colorPrimary,
},
"& .ant-statistic-content-suffix": {
fontSize: 16,
fontSize: theme.fontSize,
color: theme.colorPrimary,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ const VariantPopover = ({env, selectedDeployedVariant, ...props}: VariantPopover
</div>
}
>
<Tag className="w-fit cursor-pointer" onClick={(e) => e.stopPropagation()}>
<Tag
className="w-fit cursor-pointer py-[1px] px-2"
onClick={(e) => e.stopPropagation()}
>
<Badge
color={token.colorPrimary}
text={formatVariantIdWithHash(env.deployed_app_variant_id as string)}
Expand Down