Skip to content

Commit

Permalink
Fix admin info box padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot committed Feb 14, 2025
1 parent 043b681 commit 9d198e3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
31 changes: 31 additions & 0 deletions submit-api/migrations/versions/85b2825c9d10_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"""Add root_submission_id column
Revision ID: 85b2825c9d10
Revises: 1f4745895453
Create Date: 2025-02-14 10:00:38.973943
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '85b2825c9d10'
down_revision = '1f4745895453'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('submissions', schema=None) as batch_op:
batch_op.add_column(sa.Column('root_submission_id', sa.Integer(), nullable=True))
batch_op.create_foreign_key(None, 'submissions', ['root_submission_id'], ['id'])
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('submissions', schema=None) as batch_op:
batch_op.drop_column('root_submission_id')
# ### end Alembic commands ###
5 changes: 2 additions & 3 deletions submit-web/src/components/Submission/InfoBox/AdminInfoBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ export const AdminInfoBox = ({ submissionPackage }: InfoBoxProps) => {
sx={{
borderRadius: "4px",
border: `1px solid ${BCDesignTokens.surfaceColorBorderDefault}`,
p: "16px",
p: "16px 16px 16px 16px",
}}
rowSpacing={"24px"}
>
<Grid item xs={12} lg={4} container>
<Stack direction={"row"} spacing={2}>
Expand Down Expand Up @@ -69,7 +68,7 @@ export const AdminInfoBox = ({ submissionPackage }: InfoBoxProps) => {
</Typography>
<VersionGroup currentPackageVersion={version} />
</Grid>
<Grid item xs={12} container>
<Grid item xs={12} container mt={"24px"}>
<SubmissionHistory submissionPackageId={String(submissionPackage.id)} />
</Grid>
</Grid>
Expand Down

0 comments on commit 9d198e3

Please sign in to comment.