Skip to content

Commit

Permalink
Fix scrolling test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Oct 23, 2023
1 parent 8b589a4 commit 617a57c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
10 changes: 10 additions & 0 deletions packages/app/src/components/trivet/TestCaseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ import Popup from '@atlaskit/popup';
import TextField from '@atlaskit/textfield';

const containerStyles = css`
display: flex;
flex-direction: column;
flex: 0 1 auto;
min-height: 0;
h3 {
margin-top: 32px;
margin-bottom: 0;
Expand All @@ -28,6 +33,10 @@ const styles = css`
grid-template-columns: 8px auto 36px 1fr 1fr;
padding-top: 10px;
min-height: 0;
flex: 0 1 auto;
overflow: auto;
.cell {
padding: 8px;
overflow: hidden;
Expand All @@ -37,6 +46,7 @@ const styles = css`
display: flex;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
min-height: 32px;
}
.test-case-row {
Expand Down
18 changes: 16 additions & 2 deletions packages/app/src/components/trivet/TestSuite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,24 @@ const styles = css`
min-height: 100%;
position: relative;
display: flex;
overflow: hidden;
height: 100%;
.test-suite-area {
padding: 48px 20px 20px 20px;
padding: 48px 20px 40px 20px;
min-height: 0;
flex: 1 1 auto;
display: flex;
flex-direction: column;
}
.test-suite-area-main {
display: flex;
flex-direction: column;
flex: 1 1 auto;
min-height: 0;
}
header {
Expand Down Expand Up @@ -261,7 +275,7 @@ export const TestSuite: FC<{ testSuite: TrivetTestSuite; tryRunTests: TryRunTest
</div>
</div>
</header>
<div>
<div className="test-suite-area-main">
{validationGraphValidationResults != null && !validationGraphValidationResults.valid && (
<div className="validation-results">
<AlertCircleIcon /> Validation graph requires a specific format. Please fix the following errors:
Expand Down

0 comments on commit 617a57c

Please sign in to comment.