Skip to content

Commit

Permalink
Allow horizontal scroll in Middle Panel and give tables extra padding
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Oct 24, 2024
1 parent 0656378 commit eb97267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common-elements/fields-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ export const PropertiesTable = styled.table`
border-spacing: 0;
width: 100%;
// Extra padding for overflow scroll
padding-right: 32px;
> tr {
vertical-align: middle;
}
Expand Down
1 change: 1 addition & 0 deletions src/common-elements/panels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const MiddlePanel = styled.div<{ compact?: boolean }>`
width: calc(100% - ${props => props.theme.rightPanel.width});
padding: 0 ${props => props.theme.spacing.sectionHorizontal}px;
background: var(--middle-panel-bg-color);
overflow-x: auto;
${({ compact, theme }) =>
media.lessThan('medium', true)`
Expand Down

0 comments on commit eb97267

Please sign in to comment.