-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CSS changes for responsive design (#1646)
* initial css changes for responsive design * run prettier * Add e2e tests for different sizes * updated layout with a hamburger menu item * cleanup and fixed spacing around the login button * Updating e2e tests for burger menu and title change * Running prettier --------- Co-authored-by: Pamela Fox <[email protected]> Co-authored-by: Pamela Fox <[email protected]>
- Loading branch information
1 parent
f4fb45c
commit 1603e94
Showing
20 changed files
with
427 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
app/frontend/src/components/ClearChatButton/ClearChatButton.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.container { | ||
display: flex; | ||
align-items: center; | ||
gap: 6px; | ||
gap: 0.375em; | ||
cursor: pointer; | ||
padding: 0.5rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,68 @@ | ||
.examplesNavList { | ||
list-style: none; | ||
padding-left: 0; | ||
padding-left: 1rem; | ||
padding-right: 1rem; | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 10px; | ||
gap: 0.625rem; | ||
flex: 1; | ||
justify-content: center; | ||
} | ||
|
||
.example { | ||
word-break: break-word; | ||
background: #dbdbdb; | ||
border-radius: 8px; | ||
border-radius: 0.5rem; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 20px; | ||
margin-bottom: 5px; | ||
margin-bottom: 0.3125rem; | ||
cursor: pointer; | ||
} | ||
|
||
.example:hover { | ||
box-shadow: | ||
0px 8px 16px rgba(0, 0, 0, 0.14), | ||
0px 0px 2px rgba(0, 0, 0, 0.12); | ||
outline: 2px solid rgba(115, 118, 225, 1); | ||
0rem 0.5rem 1rem rgba(0, 0, 0, 0.14), | ||
0rem 0rem 0.125rem rgba(0, 0, 0, 0.12); | ||
outline: 0.125rem solid rgba(115, 118, 225, 1); | ||
} | ||
|
||
.exampleText { | ||
margin: 0; | ||
font-size: 22px; | ||
width: 280px; | ||
min-height: 100px; | ||
font-size: 1.25rem; | ||
width: 25rem; | ||
padding: 0.5rem; | ||
min-height: 4.5rem; | ||
} | ||
|
||
@media only screen and (max-height: 780px) { | ||
.examplesNavList li { | ||
display: none; | ||
} | ||
|
||
.examplesNavList li:nth-of-type(1), | ||
.examplesNavList li:nth-of-type(2) { | ||
display: block; /* Default to showing two list items */ | ||
} | ||
|
||
@media only screen and (min-width: 992px) { | ||
.examplesNavList { | ||
flex-direction: row; /* Switch to row layout for wider screens */ | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
|
||
.example { | ||
margin-bottom: 0.3125rem; | ||
padding: 1.25rem; | ||
} | ||
|
||
.examplesNavList li:nth-of-type(2), | ||
.examplesNavList li:nth-of-type(3) { | ||
display: block; /* Show an additional list item for medium heights */ | ||
} | ||
.exampleText { | ||
font-size: 20px; | ||
height: 80px; | ||
font-size: 1.375rem; | ||
width: 17.5rem; | ||
padding: 0; | ||
min-height: 6.25rem; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
app/frontend/src/components/GPT4VSettings/GPT4VSettings.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.container { | ||
margin-top: 10px; | ||
margin-top: 0.625em; | ||
} |
5 changes: 3 additions & 2 deletions
5
app/frontend/src/components/LoginButton/LoginButton.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.loginButton { | ||
border-radius: 5px; | ||
padding: 30px 30px; | ||
border-radius: 0.3125em; | ||
font-weight: 100; | ||
margin: 0; | ||
padding: 0.5rem 1rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 11 additions & 6 deletions
17
app/frontend/src/components/QuestionInput/QuestionInput.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
.questionInputContainer { | ||
border-radius: 8px; | ||
border-radius: 0.5rem; | ||
box-shadow: | ||
0px 8px 16px rgba(0, 0, 0, 0.14), | ||
0px 0px 2px rgba(0, 0, 0, 0.12); | ||
height: 90px; | ||
0px 0.5rem 1rem rgba(0, 0, 0, 0.14), | ||
0px 0px 0.125rem rgba(0, 0, 0, 0.12); | ||
width: 100%; | ||
padding: 15px; | ||
padding: 0.8rem; | ||
background: white; | ||
} | ||
|
||
.questionInputTextArea { | ||
width: 100%; | ||
line-height: 40px; | ||
line-height: 2.5rem; | ||
} | ||
|
||
.questionInputButtonsContainer { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
} | ||
|
||
@media (min-width: 992px) { | ||
.questionInputContainer { | ||
height: 5.625rem; | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
app/frontend/src/components/SettingsButton/SettingsButton.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.container { | ||
display: flex; | ||
align-items: center; | ||
gap: 6px; | ||
gap: 0.375em; | ||
cursor: pointer; | ||
padding: 0.5rem; | ||
} |
Oops, something went wrong.