Skip to content

Commit

Permalink
Merge pull request #6 from rdtabb/fix/pages-inline-padding
Browse files Browse the repository at this point in the history
fix: changes mobile padding-inline for posts-list, user-list and prof…
  • Loading branch information
rdtabb authored Jun 30, 2024
2 parents cb5d285 + c92c12c commit 78a0a61
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
12 changes: 5 additions & 7 deletions src/pages/chat/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ export const Chat = (): JSX.Element => {
const { username } = useCurrentUser()

return (
<>
<main className="chat">
<ErrorBoundary>
<Messages />
</ErrorBoundary>
</main>
<main className="chat">
<ErrorBoundary>
<Messages />
</ErrorBoundary>
<SubmitMessage username={username} />
</>
</main>
)
}
22 changes: 12 additions & 10 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -611,17 +611,17 @@ body:has(.chat) {
}

@media (max-width: 890px) {
.profile {
padding-inline: 19px;
}
// .profile {
// padding-inline: 19px;
// }
}

@media (max-width: 690px) {
.profile {
flex-direction: column;
gap: 34px;
text-align: center;
padding-inline: 19px;
// padding-inline: 19px;

margin: 0 0 36px;

Expand Down Expand Up @@ -718,7 +718,7 @@ body:has(.chat) {

@media (max-width: 890px) {
.cards {
padding-inline: 19px;
// padding-inline: 19px;
margin-bottom: 48px;
}
}
Expand Down Expand Up @@ -1019,6 +1019,7 @@ body:has(.chat) {
border: 0;
color: hsl(var(--clr-primary-900));
border-bottom: 2px solid hsl(var(--clr-primary-900), 0.4);
border-radius: 0px;
background: transparent;
padding: 0.25rem;
transition: all var(--timing-function-primary) var(--transition-time-primary);
Expand Down Expand Up @@ -1326,9 +1327,8 @@ body:has(.chat) {
/* ---------------------------------------- */
.search {
--width: 50rem;
--padding: 1rem;

width: min(var(--width), 100% - var(--padding) * 2);
width: min(var(--width), 100%);
margin-inline: auto;
display: grid;

Expand Down Expand Up @@ -1537,7 +1537,8 @@ body:has(.chat) {
&__empty {
text-align: center;
font-weight: var(--fw-600);
font-size: clamp(var(--fs-400), 7vw, var(--fs-650));
font-size: clamp(var(--fs-200), 5vw, var(--fs-650));
text-wrap: balance;
place-self: center;
}
}
Expand Down Expand Up @@ -1642,8 +1643,9 @@ body:has(.chat) {

input {
width: 100%;
padding: 0.75rem 2rem;
border-radius: 100vmax;
padding: 0.5rem;
border-radius: 0.5rem;
font-size: var(--fs-300);
border: 1px solid hsl(var(--clr-primary-900));
background-color: hsl(var(--clr-primary-100));
color: hsl(var(--clr-primary-900));
Expand Down

0 comments on commit 78a0a61

Please sign in to comment.