Skip to content

Commit

Permalink
Merge pull request #2027 from Agenta-AI/fix/small-ui-issues
Browse files Browse the repository at this point in the history
Fix: small UI issues in overview page
  • Loading branch information
aakrem authored Sep 9, 2024
2 parents 58b69bc + dafef16 commit 6f1c87b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 13 deletions.
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"}
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

0 comments on commit 6f1c87b

Please sign in to comment.