Skip to content

Commit

Permalink
fix: new default grid/item spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenrikoverland authored and HendrikThePendric committed Dec 17, 2024
1 parent cc0382b commit d812e53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/components/styles/DashboardContainer.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.container {
background-color: var(--colors-grey200);
padding-inline-start: var(--spacers-dp16);
padding-inline-end: var(--spacers-dp16);
padding-block-end: var(--spacers-dp24);
background-color: #f4f6f8;
padding-inline-start: var(--spacers-dp8);
padding-inline-end: var(--spacers-dp8);
padding-block-end: var(--spacers-dp12);
overflow: auto;
}

Expand Down
6 changes: 3 additions & 3 deletions src/modules/gridUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import {
import { isSmallScreen } from './smallScreen.js'

export const GRID_COMPACT_TYPE = 'vertical' // vertical | horizonal | null
export const GRID_ROW_HEIGHT_PX = 10
export const MARGIN_PX = [10, 10]
export const GRID_ROW_HEIGHT_PX = 16
export const MARGIN_PX = [4, 4]

const SM_SCREEN_MIN_ITEM_GRID_HEIGHT = 13 // minimum of ~320px
export const SM_SCREEN_GRID_COLUMNS = 1
export const MARGIN_SM_PX = [0, 16]
export const GRID_PADDING_PX = [0, 0]
// sum of left+right padding of dashboard-wrapper (App.css)
export const DASHBOARD_WRAPPER_LR_MARGIN_PX = 32
export const DASHBOARD_WRAPPER_LR_MARGIN_PX = 28
// make an assumption about the original item w/h ratio
// assumes grid width of ~1200px at time dashboard was created
const GRID_COL_WIDTH_PX = 10
Expand Down

0 comments on commit d812e53

Please sign in to comment.