Skip to content

Commit

Permalink
Make profile page responsive (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadekeegan authored Mar 29, 2024
1 parent 4298691 commit 6223208
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
46 changes: 23 additions & 23 deletions frontend/src/app/profile/profile-page/profile-page.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
}

.container {
padding-left: 24px;
padding-top: 24px;
padding: 24px;
-ms-overflow-style: none;
/* Internet Explorer 10+ */
scrollbar-width: none;
Expand All @@ -35,8 +34,15 @@
width: inherit;
}

.events-card-container {
grid-area: span 2;
.profile-management-actions {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0 16px 16px 16px;
}

.action-section {
width: 100% !important;
}

.section-title {
Expand All @@ -47,24 +53,18 @@

.action-buttons {
display: flex;
flex-grow: inherit;
flex: 1;
}

.action-button {
width: fit-content;
margin-right: 10px;
white-space: normal;
word-wrap: normal;
}

.token-text {
width: 450px;
word-wrap: break-word;
}

.profile-management-actions {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0 16px 16px 16px;
margin-bottom: 0;
}

@media (prefers-color-scheme: light) {
Expand All @@ -74,17 +74,17 @@
}

/** Make cards display in one column, with the event card appearing last */
@media only screen and (max-device-width: 730px) {
@media only screen and (max-device-width: 750px) {
.profile-grid {
display: grid;
padding: 24px;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
row-gap: 15px;
column-gap: 24px;
display: flex;
flex-direction: column;
}
}

.events-card-container {
order: 1;
@media only screen and (max-device-width: 450px) {
.action-buttons {
display: flex;
flex-direction: column;
row-gap: 12px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@
Copy Bearer Token
</button>
</div>
<div class="token-text">
<p *ngIf="showToken && token">
<code>{{ token }}</code>
</p>
</div>
<p class="token-text" *ngIf="showToken && token">
<code>{{ token }}</code>
</p>
</div>
</mat-card-actions>
</mat-card>
Expand Down

0 comments on commit 6223208

Please sign in to comment.