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

Schema: System field text, button spacing, model scroll fix #1908

Merged
merged 8 commits into from
Mar 3, 2023
6 changes: 3 additions & 3 deletions src/apps/schema/src/appRevamp/components/FieldList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const FieldList = ({ onNewFieldModalClick }: Props) => {
Each content item (child) of a model in Zesty comes included
with non-editable system fields that represent the state of the
content such as when it was created, updated, and the version.
The value of these fields can be under the{" "}
The value of these fields can be found under the{" "}
<strong>meta key</strong> in the{" "}
<Link
href="https://instances-api.zesty.org/#a630bb24-0760-a273-d125-88dce3bcb5b2"
Expand Down Expand Up @@ -314,7 +314,7 @@ export const FieldList = ({ onNewFieldModalClick }: Props) => {
data-cy="EndOfListAddFieldBtn"
sx={{
justifyContent: "flex-start",
my: 1,
mt: 1.5,
px: 4.5,
borderRadius: "8px",
fontWeight: 700,
Expand Down Expand Up @@ -352,7 +352,7 @@ export const FieldList = ({ onNewFieldModalClick }: Props) => {
{Boolean(deactivatedFields?.length) && !search && (
<Box
mb={2}
mt={0.5}
mt={1.5}
display="flex"
flexDirection="column"
gap={1.5}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const ModelList = ({ title, models, type }: Props) => {
sx={{ py: "6px", px: "12px", borderRadius: "4px" }}
selected={selected}
onClick={() => history.push(`/schema/${model.ZUID}`)}
autoFocus={selected}
>
<ListItemIcon
sx={{
Expand Down
1 change: 1 addition & 0 deletions src/shell/components/global-tabs/components/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const BaseTab: FC<BaseTab> = ({
)}
</Box>
<MuiLink
underline="none"
component={Link}
to={tab.pathname + tab.search}
variant="caption"
Expand Down