Skip to content

Commit

Permalink
fix for ever growing list
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed Apr 3, 2020
1 parent c1d5ddf commit fca91ea
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
26 changes: 25 additions & 1 deletion app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions app/src/ui/lib/list/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,7 @@ export class List extends React.Component<IListProps, IListState> {
const [width, height] = [target.offsetWidth, target.offsetHeight]

if (this.state.width !== width || this.state.height !== height) {
this.setState({
width,
height: Math.min(height, window.outerHeight - 250 - 90),
})
this.setState({ width, height })
}
}

Expand Down
4 changes: 4 additions & 0 deletions app/styles/ui/_file-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
}

.list-focus-container {
// hack to fix an ever growing list
// see https://github.com/kactus-io/kactus/issues/147
max-height: 1px;

// Default to using status aware colors for the change type
// octicons (i.e. green for added, yellowish for modified etc)
// but fall back to picking up the ambient text color when the
Expand Down

0 comments on commit fca91ea

Please sign in to comment.