Skip to content

Commit 52d48d9

Browse files
committed
Layout updates: md->lg, removing min-height and most overflow-scroll
1 parent 4c7209d commit 52d48d9

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/app/app.component.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
-->
1616
<div class="site-layout h-screen overflow-scroll">
17-
<div class="w-full py-4 flex flex-col md:px-12 lg:px-2 mb-8">
17+
<div class="w-full py-4 flex flex-col lg:px-12 lg:px-2 mb-8">
1818
<!-- Icon and Title Section -->
1919
<div class="flex items-center p-8 pl-[10%] justify-start">
2020
<img
@@ -28,11 +28,11 @@ <h1 class="text-3xl" style="font-family: 'Helvetica Neue', sans-serif">
2828
</div>
2929

3030
<div
31-
class="w-[85%] flex flex-col md:flex-row md:gap-6 justify-between items-center mx-auto min-h-[600px] md:min-h-[600px]"
31+
class="w-full p-4 flex flex-col lg:items-start lg:flex-row lg:gap-6 justify-between items-center mx-auto"
3232
>
3333
<!-- Task Generation -->
3434
<div
35-
class="w-full md:w-2/5 p-4 bg-[#fff] transition-all duration-300 ease-in-out rounded-[40px] relative m-2 flex flex-col"
35+
class="w-full lg:w-2/5 p-4 bg-[#fff] transition-all duration-300 ease-in-out rounded-[40px] relative m-2 flex flex-col"
3636
>
3737
<div class="flex-grow flex flex-col justify-between overflow-scroll">
3838
<div>
@@ -54,7 +54,7 @@ <h1 class="text-3xl" style="font-family: 'Helvetica Neue', sans-serif">
5454

5555
<!-- Prompt Input Section -->
5656
<form>
57-
<div class="w-full flex justify-between gap-4 mb-4 p-4">
57+
<div class="w-full flex flex-col justify-between gap-4 mb-4 p-4 lg:flex-row xl:flex-row">
5858
<mat-form-field class="w-11/12 mb-8" appearance="outline">
5959
<mat-label>Add a prompt</mat-label>
6060
<textarea
@@ -100,7 +100,7 @@ <h1 class="text-3xl" style="font-family: 'Helvetica Neue', sans-serif">
100100
</div>
101101

102102
<!-- Generated Task Section -->
103-
<div class="flex-grow min-h-[150px] md:min-h-[216px] pb-4">
103+
<div class="flex-grow pb-4">
104104
@if (isLoading()) {
105105
<mat-spinner></mat-spinner>
106106
} @else if (generatedTask) {
@@ -142,15 +142,15 @@ <h1 class="text-3xl" style="font-family: 'Helvetica Neue', sans-serif">
142142
<!-- Task Grid -->
143143
@if (this.tasks.length > 0) {
144144
<div
145-
class="w-full md:w-3/5 p-4 bg-[#fff] transition-all duration-300 ease-in-out rounded-[40px] relative overflow-scroll my-2 flex flex-col"
145+
class="w-full lg:w-3/5 p-4 bg-[#fff] transition-all duration-300 ease-in-out rounded-[40px] relative overflow-scroll my-2 flex flex-col"
146146
>
147147
<div
148-
class="flex-grow w-full grid grid-cols-1 md:grid-cols-1 xl:grid-cols-2 gap-6 bg-[#fff] rounded-[40px] p-4 min-h-[90%] overflow-y-scroll"
148+
class="flex-grow w-full grid grid-cols-1 lg:grid-cols-1 xl:grid-cols-2 gap-6 bg-[#fff] rounded-[40px] p-4"
149149
>
150150
@for (task of this.tasks; track task.maintask.id) {
151151
<app-task
152152
[task]="task"
153-
class="h-auto min-h-[216px] overflow-scroll"
153+
class="h-auto"
154154
(onDelete)="deleteCurrentMainAndSubTasks($event)"
155155
(onTasksCompletedToggle)="onTasksCompleted($event)"
156156
></app-task>

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
},
2727
screens: {
2828
'xs': '480px',
29-
'sm': '740px',
29+
'sm': '640px',
3030
'md': '868px',
3131
'lg': '1024px',
3232
'xl': '1280px',

0 commit comments

Comments
 (0)