Improve UI compatibility for mobile devices
This commit is contained in:
committed by
Aditya Chandel
parent
c8b994ed82
commit
d0edf800c7
@@ -1,6 +1,6 @@
|
||||
@if ((libraryState$ | async)?.libraries; as libraries) {
|
||||
<div
|
||||
class="flex flex-col gap-10 p-4 items-center justify-center min-w-[500px] max-w-[700px] w-full">
|
||||
class="flex flex-col gap-10 p-4 items-center justify-center w-full max-w-[700px]">
|
||||
<p-select
|
||||
[options]="libraries"
|
||||
optionLabel="name"
|
||||
@@ -48,7 +48,7 @@
|
||||
<div class="flex flex-col gap-8 px-4">
|
||||
@if (files?.length > 0) {
|
||||
<div>
|
||||
<div class="max-h-96 overflow-y-auto pr-2">
|
||||
<div class="max-h-96 max-w-[22rem] md:max-w-none overflow-y-auto pr-2">
|
||||
<div class="flex flex-wrap">
|
||||
@for (uploadFile of this.files; track uploadFile; let i = $index) {
|
||||
<div class="flex justify-between items-center w-full gap-4">
|
||||
|
||||
+6
-6
@@ -1,4 +1,4 @@
|
||||
<div class="h-[50rem] flex flex-col">
|
||||
<div class="h-[50rem] md:h-[50rem] md:w-[50rem] w-[25rem] flex flex-col">
|
||||
<div class="mb-6 flex items-center gap-4">
|
||||
<input
|
||||
id="disabled-input"
|
||||
@@ -7,14 +7,14 @@
|
||||
[value]="selectedProductName"
|
||||
[disabled]="true"
|
||||
class="w-full p-2 text-base"
|
||||
/>
|
||||
<p-button label="Select" severity="success" class="w-[100px]" (click)="onSelect()"></p-button>
|
||||
/>
|
||||
<p-button label="Select" severity="success" (click)="onSelect()"></p-button>
|
||||
</div>
|
||||
<p-table [value]="paths" [tableStyle]="{ 'min-width': '50rem' }" class="flex-grow overflow-y-auto">
|
||||
<p-table [value]="paths" styleClass="responsive-table" class="flex-grow overflow-y-auto">
|
||||
<ng-template pTemplate="header">
|
||||
<tr>
|
||||
<th class="w-[10%]">Type</th>
|
||||
<th class="w-[90%]">Name</th>
|
||||
<th class="w-[1%]"></th>
|
||||
<th class="w-[99%]">Name</th>
|
||||
</tr>
|
||||
</ng-template>
|
||||
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
.responsive-table {
|
||||
min-width: 50rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
min-width: 100% !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user