Mobile-friendly design

This commit is contained in:
Astra 2025-04-20 20:44:56 +09:00
parent ebca274e5a
commit 686ef007c4
Signed by: astra
SSH key fingerprint: SHA256:jQDNS75/33T59Ey4yAzrUPP/5YQaXEetsW8hwUae+ag
2 changed files with 43 additions and 8 deletions

View file

@ -41,6 +41,8 @@
</main> </main>
<style> <style>
/* desktop style */
#Content { #Content {
display: flex; display: flex;
/* split the screen in half, left for accounts, right for posts */ /* split the screen in half, left for accounts, right for posts */
@ -93,4 +95,36 @@
font-size: 2em; font-size: 2em;
margin-bottom: 20px; margin-bottom: 20px;
} }
/* mobile style */
@media screen and (max-width: 600px) {
#Content {
flex-direction: column;
width: auto;
padding-left: 0px;
padding-right: 0px;
margin-top: 5%;
}
#Account {
width: auto;
padding-left: 5%;
padding-right: 5%;
margin-bottom: 20px;
margin-left: 5%;
margin-right: 5%;
height: auto;
}
#Feed {
width: 95%;
margin: 0px;
margin-left: 10%;
margin-right: 10%;
padding: 0px;
height: auto;
}
#spacer {
height: 0;
}
}
</style> </style>

View file

@ -222,14 +222,6 @@
margin-left: 0px; margin-left: 0px;
border-right: #8054f0 1px solid; border-right: #8054f0 1px solid;
} }
#embedImages {
min-width: 500px;
max-width: 500px;
max-height: 500px;
object-fit: contain;
margin: 0;
}
#carouselContainer { #carouselContainer {
position: relative; position: relative;
width: 100%; width: 100%;
@ -281,4 +273,13 @@
margin-top: 10px; margin-top: 10px;
align-self: center; align-self: center;
} }
#embedImages {
min-width: min(100%, 500px);
max-width: min(100%, 500px);
max-height: 500px;
object-fit: contain;
margin: 0;
}
</style> </style>