Admin horizontal scroll on narrower screens (#3406)

* admin horizontal scoll

* fixed lint errors

* Update web/public/styles/admin/config-public-details.css

---------

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
Annie Pauline 2023-12-01 08:23:22 +05:30 committed by GitHub
parent 214de6db11
commit 5eb043dfad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 4 deletions

View file

@ -6,7 +6,7 @@
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
} }
@media (max-width: 1200px) { @media (max-width: 1400px) {
.config-public-details-page .top-container { .config-public-details-page .top-container {
flex-wrap: wrap; flex-wrap: wrap;
} }
@ -26,7 +26,7 @@
max-width: none; max-width: none;
} }
} }
@media (max-width: 1200px) and (max-width: 980px) { @media (max-width: 1400px) {
.config-public-details-page .top-container .social-items-container { .config-public-details-page .top-container .social-items-container {
flex-direction: column; flex-direction: column;
} }
@ -77,3 +77,8 @@
display: inline-block; display: inline-block;
border: 1px solid var(--theme-color-palette-5); border: 1px solid var(--theme-color-palette-5);
} }
@media (min-width: 1400px) {
.instance-details-container {
width: 65% !important;
}
}

View file

@ -1,15 +1,19 @@
.config-public-details-page { .config-public-details-page {
width: 100%; width: 100%;
} }
.config-public-details-page .top-container { .config-public-details-page .top-container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
} }
@media (max-width: 1200px) {
/* add and your next to each other for < 1200 */
@media (max-width: 1400px) {
.config-public-details-page .top-container { .config-public-details-page .top-container {
flex-wrap: wrap; flex-wrap: wrap;
} }
.config-public-details-page .top-container .social-items-container { .config-public-details-page .top-container .social-items-container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -19,55 +23,70 @@
width: 100%; width: 100%;
max-width: none; max-width: none;
} }
.config-public-details-page .top-container .social-items-container .tags-module { .config-public-details-page .top-container .social-items-container .tags-module {
margin-right: 1em; margin-right: 1em;
} }
.config-public-details-page .top-container .social-items-container .form-module { .config-public-details-page .top-container .social-items-container .form-module {
max-width: none; max-width: none;
} }
} }
@media (max-width: 1200px) and (max-width: 980px) {
/* everything comes into a single column*/
@media (max-width: 1400px) {
.config-public-details-page .top-container .social-items-container { .config-public-details-page .top-container .social-items-container {
flex-direction: column; flex-direction: column;
} }
.config-public-details-page .top-container .social-items-container .form-module { .config-public-details-page .top-container .social-items-container .form-module {
width: 100%; width: 100%;
} }
.config-public-details-page .top-container .social-items-container .tags-module { .config-public-details-page .top-container .social-items-container .tags-module {
margin-bottom: 0; margin-bottom: 0;
} }
} }
.config-public-details-page .instance-details-container { .config-public-details-page .instance-details-container {
width: 100%; width: 100%;
border-right: 1px solid #cbd0d8; border-right: 1px solid #cbd0d8;
} }
.config-public-details-page .social-items-container { .config-public-details-page .social-items-container {
padding: 0 0.75em; padding: 0 0.75em;
margin-left: 1em; margin-left: 1em;
max-width: 450px; max-width: 450px;
} }
.config-public-details-page .social-items-container .social-handles-container { .config-public-details-page .social-items-container .social-handles-container {
min-width: 350px; min-width: 350px;
} }
.config-public-details-page .instance-details-container, .config-public-details-page .instance-details-container,
.config-public-details-page .page-content-module { .config-public-details-page .page-content-module {
margin: 1em 0; margin: 1em 0;
} }
.config-public-details-page .field-summary textarea { .config-public-details-page .field-summary textarea {
height: 6em !important; height: 6em !important;
} }
.config-public-details-page .edit-custom-css #field-customStyles { .config-public-details-page .edit-custom-css #field-customStyles {
height: 15em; height: 15em;
width: 100%; width: 100%;
font-family: monospace; font-family: monospace;
resize: auto; resize: auto;
} }
.other-field-container { .other-field-container {
margin: 0.5em 0; margin: 0.5em 0;
} }
.logo-upload-container .input-group { .logo-upload-container .input-group {
align-items: center; align-items: center;
} }
.logo-upload-container img.logo-preview { .logo-upload-container img.logo-preview {
min-height: 120px; min-height: 120px;
min-width: 120px; min-width: 120px;
@ -77,3 +96,9 @@
display: inline-block; display: inline-block;
border: 1px solid var(--theme-color-palette-5); border: 1px solid var(--theme-color-palette-5);
} }
@media (min-width: 1400px) {
.instance-details-container {
width: 65% !important;
}
}