re-rolling the style tweaks (#2068)

This commit is contained in:
sonicyeti
2020-04-28 16:38:31 -04:00
committed by GitHub
parent a733ccf51f
commit d4d2a5fa14
10 changed files with 19 additions and 10 deletions

View File

@@ -71,7 +71,7 @@ class WrapperDebug extends React.PureComponent<Props> {
className="app-header"
gridLeft={
<React.Fragment>
<img src={designerLogo} alt="Insomnia" width="24" height="24" />
<img src={designerLogo} alt="Insomnia" width="32" height="32" />
<Breadcrumb
className="breadcrumb"
crumbs={['Documents', activeApiSpec.fileName]}

View File

@@ -203,7 +203,7 @@ class WrapperDesign extends React.PureComponent<Props, State> {
className="app-header"
gridLeft={
<React.Fragment>
<img src={designerLogo} alt="Insomnia" width="24" height="24" />
<img src={designerLogo} alt="Insomnia" width="32" height="32" />
<Breadcrumb className="breadcrumb" crumbs={['Documents', activeApiSpec.fileName]} onClick={this._handleBreadcrumb} />
</React.Fragment>
}

View File

@@ -349,7 +349,7 @@ class WrapperHome extends React.PureComponent<Props, State> {
let defaultActivity = ACTIVITY_DEBUG;
if (spec || w.scope === 'spec') {
label = 'Unknown';
label = '';
if (specFormat === 'openapi') {
label = `OpenAPI ${specFormatVersion}`;
} else if (specFormat === 'swagger') {
@@ -415,7 +415,7 @@ class WrapperHome extends React.PureComponent<Props, State> {
className="app-header"
gridLeft={
<React.Fragment>
<img src={designerLogo} alt="Insomnia" width="24" height="24" />
<img src={designerLogo} alt="Insomnia" width="32" height="32" />
<Breadcrumb className="breadcrumb" crumbs={['Documents']} />
</React.Fragment>
}
@@ -427,7 +427,7 @@ class WrapperHome extends React.PureComponent<Props, State> {
type="text"
placeholder="Filter..."
onChange={this._handleFilterChange}
className="no-margin workspace-filter"
className="no-margin"
/>
<span className="fa fa-search filter-icon"></span>
</KeydownBinder>

View File

@@ -22,6 +22,10 @@
flex-direction: row;
align-items: center;
input {
border-radius: 3px;
}
h1 {
// Fill space after H1 until the next element
margin-right: auto;

View File

@@ -46,7 +46,7 @@
flex-direction: row !important;
-webkit-box-align: center !important;
align-items: center !important;
border-radius: 2px;
border-radius: 3px;
border-width: 1px;
border-style: solid;
border-color: initial;

View File

@@ -14,7 +14,7 @@ const StyledButton: React.ComponentType<Props> = styled.button`
font-size: var(--font-size-sm);
padding: 0 var(--padding-md);
height: var(--line-height-xs);
border-radius: 2px;
border-radius: 3px;
display: flex !important;
flex-direction: row !important;
align-items: center !important;

View File

@@ -88,6 +88,10 @@ const CardHeader: React.ComponentType<{}> = styled.div`
align-items: center;
padding-left: var(--padding-md);
padding-right: var(--padding-md);
&:empty {
visibility: hidden;
}
}
.card-menu {
@@ -176,6 +180,7 @@ const CardBody: React.ComponentType<{}> = styled.div`
padding-left: var(--padding-md);
.title {
font-size: var(--font-size-md);
padding-right: var(--padding-md);
}
.version {

View File

@@ -11,7 +11,7 @@ type Props = {|
const StyledHeader: React.ComponentType<{}> = styled.div`
border-bottom:1px solid var(--hl-md);
padding: var(--padding-sm) var(--padding-md);
padding: var(--padding-md);
display: grid;
grid-template-columns: 2fr 1.5fr 2fr;
grid-template-rows: 1fr;

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long