Skip to content

Commit

Permalink
Quick Fix of Mobile view on profile, event detail pages (#167)
Browse files Browse the repository at this point in the history
Remove margin on mobile view. Fix Event Descriptions.
  • Loading branch information
KengLL authored May 15, 2024
1 parent a228503 commit cffd0ef
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
19 changes: 15 additions & 4 deletions frontend/src/Components/Events/EventDetailContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
<p>This event can be signed into at any time.</p>
{/if}
{#if content}
<div class="description" style="display: flex; flex-direction: row">
<p style="margin-right: 5px">Description: </p>
{@html content}
<div class="description">
<p>Description:
{@html content}
</p>
</div>
{/if}
Expand All @@ -65,5 +66,15 @@
h1 > a {
color: black;
}
.description :global(p) { margin-top: 0px; }
.description {
word-wrap: break-word;
white-space: pre-wrap;
word-break: break-word;
}
.description p {
margin: 0;
display: inline;
}
</style>
2 changes: 1 addition & 1 deletion frontend/src/Components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<style>
.navbar {
width: 100%;
width: 100vw;
height: 60px;
z-index: 100;
background-color: #333;
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/Pages/Events/EventDetail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,10 @@
button {
margin: 5px;
}
@media screen and (max-width: 600px) {
div {
margin:0px;
}
}
</style>
3 changes: 2 additions & 1 deletion frontend/src/Pages/Profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@
display: inline-block
}
.container {
width: 100%;
width:auto;
}
}
</style>

0 comments on commit cffd0ef

Please sign in to comment.