Skip to content

Commit 09a6f10

Browse files
koray-erenJeff
authored andcommitted
fixed mobile viewport issue
1 parent a1fd40b commit 09a6f10

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

sogs/templates/base.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@
3030
</script>
3131

3232
</head>
33-
<body class="dark:bg-otherGray transition duration-500 max-h-screen flex flex-col">
33+
<body class="dark:bg-otherGray transition duration-500 h-full flex flex-col overflow-hidden">
3434

3535
{% block modal %}
3636
{% endblock %}
3737

3838
<!-- header / navbar -->
3939
<div class="px-2 sm:px-5 flex-none flex justify-between items-center w-full h-32 max-h-32
4040
bg-sessionGreen dark:bg-otherGray border-b-2 border-black dark:border-lightGray transition duration-500">
41-
<div class="text-black dark:text-white text-center">
41+
<div class="text-black text-center">
4242
<button>
4343
<a href="/">
44-
<h1 class="text-3xl xs:text-4xl sm:text-5xl underline decoration-black dark:decoration-sessionGreen decoration-2">{% block heading %}{% endblock %}</h1>
45-
<p class="text-lg xs:text-xl sm:text-2xl">Session Open Group Server</p>
44+
<h1 class="dark:text-white text-3xl xs:text-4xl sm:text-5xl decoration-black dark:decoration-white decoration-2">{% block heading %}{% endblock %}</h1>
45+
<p class="dark:text-sessionGreen text-lg xs:text-xl sm:text-2xl">Session Open Group Server</p>
4646
</a>
4747
</button>
4848
</div>

sogs/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{% block body %}
88

9-
<section class="overflow-y-auto text-black dark:text-white ">
9+
<section class="overflow-y-auto text-black dark:text-white shrink ">
1010
<div class="m-5 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 2xl:grid-cols-6 justify-items-center gap-y-2 gap-x-2">
1111
{% for room in rooms %}
1212
{% for i in range(8) %}

sogs/templates/view_room.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
{% block body %}
4444
<!-- <button class="bg-black text-white dark:bg-sessionGreen dark:text-black rounded px-1 py-1 my-2" > <a href="/">< Back</a></button> -->
4545

46-
<section class="overflow-y-auto text-black dark:text-white flex flex-col-reverse ">
46+
<section class="overflow-y-auto text-black dark:text-white flex flex-col-reverse items-center ">
4747
{% if show_recent %}
48-
<div id="messages-container" class="m-5 flex flex-col-reverse " >
48+
<div id="messages-container" class=" m-2 flex flex-col-reverse w-[93vw] " >
4949
<ul id="messages" class="m-2">
5050
<li>loading...</li>
5151
</ul>

0 commit comments

Comments
 (0)