From a81d0df9d90ef6c7bee07071c69f097958fd69d3 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Wed, 26 Mar 2025 18:26:26 +0530 Subject: [PATCH] stock module - 26-03-2025 --- app/Views/stock/CoatingMachineDetail.php | 22 ++++++++++++++++++- app/Views/stock/bagStockDetails.php | 22 +++++++++++++++++-- app/Views/stock/dieselStockDetails.php | 22 +++++++++++++++++-- app/Views/stock/drierMachineDetails.php | 22 ++++++++++++++++++- app/Views/stock/dustAndRoughStockDetails.php | 21 ++++++++++++++++-- app/Views/stock/gasStockDetails.php | 22 +++++++++++++++++-- app/Views/stock/incomingSilicaSandDetails.php | 22 ++++++++++++++++++- app/Views/stock/resinStockDetails.php | 21 ++++++++++++++++-- app/Views/stock/trpProductionStockDetails.php | 22 +++++++++++++++++-- app/Views/stock/trpSandUseStockDetails.php | 21 ++++++++++++++++-- 10 files changed, 200 insertions(+), 17 deletions(-) diff --git a/app/Views/stock/CoatingMachineDetail.php b/app/Views/stock/CoatingMachineDetail.php index ae119fc1..0c62ed23 100644 --- a/app/Views/stock/CoatingMachineDetail.php +++ b/app/Views/stock/CoatingMachineDetail.php @@ -232,8 +232,28 @@ } .table-responsive { + overflow-x: auto; overflow-y: auto; - max-height: 700px; + max-height: 500px; + max-width: 100%; + position: relative; + } + + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } } .fht-table thead th { diff --git a/app/Views/stock/bagStockDetails.php b/app/Views/stock/bagStockDetails.php index 27687fc7..a6c6b411 100644 --- a/app/Views/stock/bagStockDetails.php +++ b/app/Views/stock/bagStockDetails.php @@ -225,11 +225,29 @@ /* Table Wrapper for Scrolling */ .table-responsive { overflow-x: auto; - overflow-y: auto; - max-height: 700px; /* Adjust as needed */ + overflow-y: auto; + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td{ min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/dieselStockDetails.php b/app/Views/stock/dieselStockDetails.php index 214a44f7..dd3bd8b4 100644 --- a/app/Views/stock/dieselStockDetails.php +++ b/app/Views/stock/dieselStockDetails.php @@ -223,11 +223,29 @@ /* Table Wrapper for Scrolling */ .table-responsive { overflow-x: auto; - overflow-y: auto; - max-height: 700px; /* Adjust as needed */ + overflow-y: auto; + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td{ min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/drierMachineDetails.php b/app/Views/stock/drierMachineDetails.php index fa7b44f8..827a9906 100644 --- a/app/Views/stock/drierMachineDetails.php +++ b/app/Views/stock/drierMachineDetails.php @@ -235,8 +235,28 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y'); } .table-responsive { + overflow-x: auto; overflow-y: auto; - max-height: 700px; + max-height: 500px; + max-width: 100%; + position: relative; + } + + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } } .fht-table thead th { diff --git a/app/Views/stock/dustAndRoughStockDetails.php b/app/Views/stock/dustAndRoughStockDetails.php index 9c3e4de6..b2170b9f 100644 --- a/app/Views/stock/dustAndRoughStockDetails.php +++ b/app/Views/stock/dustAndRoughStockDetails.php @@ -233,11 +233,28 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 700px; - /* Adjust as needed */ + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td { min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/gasStockDetails.php b/app/Views/stock/gasStockDetails.php index 61addb9e..599c756e 100644 --- a/app/Views/stock/gasStockDetails.php +++ b/app/Views/stock/gasStockDetails.php @@ -214,11 +214,29 @@ /* Table Wrapper for Scrolling */ .table-responsive { overflow-x: auto; - overflow-y: auto; - max-height: 700px; /* Adjust as needed */ + overflow-y: auto; + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td{ min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/incomingSilicaSandDetails.php b/app/Views/stock/incomingSilicaSandDetails.php index bc07f9b4..5419c301 100644 --- a/app/Views/stock/incomingSilicaSandDetails.php +++ b/app/Views/stock/incomingSilicaSandDetails.php @@ -221,8 +221,28 @@ } .table-responsive { + overflow-x: auto; overflow-y: auto; - max-height: 700px; + max-height: 500px; + max-width: 100%; + position: relative; + } + + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } } .fht-table thead th { diff --git a/app/Views/stock/resinStockDetails.php b/app/Views/stock/resinStockDetails.php index 8a3f7b37..b33b8b21 100644 --- a/app/Views/stock/resinStockDetails.php +++ b/app/Views/stock/resinStockDetails.php @@ -233,11 +233,28 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 700px; - /* Adjust as needed */ + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td { min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/trpProductionStockDetails.php b/app/Views/stock/trpProductionStockDetails.php index 0e858885..9690f617 100644 --- a/app/Views/stock/trpProductionStockDetails.php +++ b/app/Views/stock/trpProductionStockDetails.php @@ -225,11 +225,29 @@ /* Table Wrapper for Scrolling */ .table-responsive { overflow-x: auto; - overflow-y: auto; - max-height: 700px; /* Adjust as needed */ + overflow-y: auto; + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td{ min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/trpSandUseStockDetails.php b/app/Views/stock/trpSandUseStockDetails.php index eae61a86..9d21aa1b 100644 --- a/app/Views/stock/trpSandUseStockDetails.php +++ b/app/Views/stock/trpSandUseStockDetails.php @@ -220,11 +220,28 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 700px; - /* Adjust as needed */ + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td { min-width: 150px; max-width: 150px;