fix(html): fix the mobile layout (#9945)

This commit is contained in:
Pavel Feldman 2021-11-01 15:47:07 -08:00 committed by GitHub
parent 9cfbc0c171
commit 0221f1a4e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 5 deletions

View file

@ -301,7 +301,7 @@ a.no-decorations {
.chip-header.expanded-false,
.chip-header.expanded-true {
cursor: pointer;
}
}
.chip-body {
border: 1px solid var(--color-border-default);
@ -342,6 +342,11 @@ a.no-decorations {
color: var(--color-fg-muted);
}
.status-container {
float: right;
}
.octicon {
display: inline-block;
overflow: visible !important;
@ -598,4 +603,10 @@ article, aside, details, figcaption, figure, footer, header, main, menu, nav, se
padding: 5px 3px;
border: none;
}
.status-container {
float: none;
margin: 0 !important;
overflow: hidden;
}
}

View file

@ -94,7 +94,10 @@ const AllTestFilesSummaryView: React.FC<{
return result;
}, [report, filter]);
return <div className='file-summary-list'>
{report && <div className='d-flex'>
{report && <div>
<div className='status-container ml-2 pl-2 d-flex'>
<StatsNavView stats={report.stats}></StatsNavView>
</div>
<form className='subnav-search' onSubmit={
event => {
event.preventDefault();
@ -109,9 +112,6 @@ const AllTestFilesSummaryView: React.FC<{
setFilterText(e.target.value);
}}></input>
</form>
<div className='ml-2 pl-2 d-flex'>
<StatsNavView stats={report.stats}></StatsNavView>
</div>
</div>}
{report && filteredFiles.map(({ file, defaultExpanded }) => {
return <TestFileSummaryView