fix(styling): make Operations more responsive on smaller screens (#9325)
Along with the operations, Topbar and Authorization button has been made more responsive as well. Refs #8940
This commit is contained in:
@@ -73,6 +73,7 @@ export default class OperationSummary extends PureComponent {
|
|||||||
onClick={toggleShown}
|
onClick={toggleShown}
|
||||||
>
|
>
|
||||||
<OperationSummaryMethod method={method} />
|
<OperationSummaryMethod method={method} />
|
||||||
|
<div className="opblock-summary-path-description-wrapper">
|
||||||
<OperationSummaryPath getComponent={getComponent} operationProps={operationProps} specPath={specPath} />
|
<OperationSummaryPath getComponent={getComponent} operationProps={operationProps} specPath={specPath} />
|
||||||
|
|
||||||
{!showSummary ? null :
|
{!showSummary ? null :
|
||||||
@@ -80,6 +81,7 @@ export default class OperationSummary extends PureComponent {
|
|||||||
{toString(resolvedSummary || summary)}
|
{toString(resolvedSummary || summary)}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
{displayOperationId && (originalOperationId || operationId) ? <span className="opblock-summary-operation-id">{originalOperationId || operationId}</span> : null}
|
{displayOperationId && (originalOperationId || operationId) ? <span className="opblock-summary-operation-id">{originalOperationId || operationId}</span> : null}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -305,6 +305,9 @@
|
|||||||
{
|
{
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
min-width: 80px;
|
min-width: 80px;
|
||||||
padding: 6px 0;
|
padding: 6px 0;
|
||||||
@@ -333,8 +336,6 @@
|
|||||||
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
|
||||||
padding: 0 10px;
|
|
||||||
|
|
||||||
@include text_code();
|
@include text_code();
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -342,7 +343,6 @@
|
|||||||
.opblock-summary-path
|
.opblock-summary-path
|
||||||
{
|
{
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
max-width: calc(100% - 110px - 15rem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
@@ -367,13 +367,31 @@
|
|||||||
{
|
{
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|
||||||
flex: 1 1 auto;
|
|
||||||
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
|
||||||
@include text_body();
|
@include text_body();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.opblock-summary-path-description-wrapper
|
||||||
|
{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0px 10px;
|
||||||
|
|
||||||
|
padding: 0 10px;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 550px) {
|
||||||
|
.opblock-summary-path-description-wrapper
|
||||||
|
{
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.opblock-summary
|
.opblock-summary
|
||||||
{
|
{
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -772,6 +790,10 @@
|
|||||||
{
|
{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
gap: 10px;
|
||||||
|
|
||||||
> label
|
> label
|
||||||
{
|
{
|
||||||
@@ -792,6 +814,27 @@
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Target Authorize Button in schemes wrapper
|
||||||
|
This was added here to fix responsiveness issues with the authorize button
|
||||||
|
within the schemes wrapper without affecting other instances of it's usage
|
||||||
|
*/
|
||||||
|
.auth-wrapper
|
||||||
|
{
|
||||||
|
flex: none;
|
||||||
|
justify-content: none;
|
||||||
|
|
||||||
|
.authorize
|
||||||
|
{
|
||||||
|
padding-right: 20px;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,17 @@
|
|||||||
{
|
{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 550px) {
|
||||||
|
.topbar-wrapper
|
||||||
|
{
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a
|
a
|
||||||
{
|
{
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
@@ -39,6 +49,7 @@
|
|||||||
input[type=text]
|
input[type=text]
|
||||||
{
|
{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
border: 2px solid $topbar-download-url-wrapper-element-border-color;
|
border: 2px solid $topbar-download-url-wrapper-element-border-color;
|
||||||
@@ -93,4 +104,10 @@
|
|||||||
@include text_headline($topbar-download-url-button-font-color);
|
@include text_headline($topbar-download-url-button-font-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media (max-width: 550px) {
|
||||||
|
.download-url-wrapper
|
||||||
|
{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user