fix(schools-crm): fix RTL Plotly horizontal overflow and widen table container
This commit is contained in:
parent
5e85579d7e
commit
f23c977172
2 changed files with 34 additions and 10 deletions
|
|
@ -21,6 +21,18 @@
|
|||
<script src="https://cdn.sheetjs.com/xlsx-0.20.1/package/dist/xlsx.full.min.js"></script>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
overflow-x: hidden !important;
|
||||
max-width: 100vw;
|
||||
}
|
||||
#js-plotly-tester {
|
||||
left: 0 !important;
|
||||
right: auto !important;
|
||||
top: 0 !important;
|
||||
visibility: hidden !important;
|
||||
pointer-events: none !important;
|
||||
max-width: 100vw !important;
|
||||
}
|
||||
body {
|
||||
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background-color: #F8FAFC;
|
||||
|
|
@ -70,7 +82,7 @@
|
|||
|
||||
<!-- Top Navigation & Header -->
|
||||
<header class="bg-white border-b border-slate-200 sticky top-0 z-40 shadow-sm">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3.5 flex flex-wrap justify-between items-center gap-4">
|
||||
<div class="max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8 py-3.5 flex flex-wrap justify-between items-center gap-4">
|
||||
<div class="flex items-center space-x-3 space-x-reverse">
|
||||
<div class="w-10 h-10 rounded-xl bg-blue-900 text-white flex items-center justify-center font-bold text-xl shadow-md">
|
||||
<i class="fa-solid fa-graduation-cap"></i>
|
||||
|
|
@ -115,7 +127,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Sub-navigation Tabs -->
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex border-t border-slate-100">
|
||||
<div class="max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8 flex border-t border-slate-100">
|
||||
<nav class="flex space-x-6 space-x-reverse" aria-label="Tabs">
|
||||
<button onclick="switchTab('calls')" id="tabBtn-calls" class="border-b-2 border-blue-800 text-blue-900 py-3 px-2 font-bold text-xs inline-flex items-center gap-2 transition">
|
||||
<i class="fa-solid fa-phone-volume"></i>
|
||||
|
|
@ -142,7 +154,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Main Container -->
|
||||
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 flex-1 w-full space-y-6">
|
||||
<main class="max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8 py-6 flex-1 w-full space-y-6">
|
||||
|
||||
<!-- Follow-up Alert Banner (Action item for Mrs. Ajili) -->
|
||||
<div class="bg-gradient-to-r from-amber-50 to-orange-50 border-r-4 border-amber-500 p-4 rounded-xl shadow-sm flex flex-col md:flex-row items-start md:items-center justify-between gap-4">
|
||||
|
|
@ -299,7 +311,7 @@
|
|||
|
||||
<!-- Calls Table -->
|
||||
<div class="overflow-x-auto mt-4">
|
||||
<table class="w-full text-right border-collapse text-xs">
|
||||
<table class="w-full text-right border-collapse text-xs min-w-[1250px]">
|
||||
<thead>
|
||||
<tr class="bg-slate-100 text-slate-700 border-b border-slate-200">
|
||||
<th class="p-3 text-center w-12">ردیف</th>
|
||||
|
|
@ -359,7 +371,7 @@
|
|||
|
||||
<!-- Master Table -->
|
||||
<div class="overflow-x-auto mt-4 max-h-[600px] overflow-y-auto">
|
||||
<table class="w-full text-right border-collapse text-xs">
|
||||
<table class="w-full text-right border-collapse text-xs min-w-[1400px]">
|
||||
<thead class="sticky top-0 bg-slate-100 z-10">
|
||||
<tr class="text-slate-700 border-b border-slate-200">
|
||||
<th class="p-3 text-center w-16">شناسه</th>
|
||||
|
|
|
|||
22
schools.html
22
schools.html
|
|
@ -21,6 +21,18 @@
|
|||
<script src="https://cdn.sheetjs.com/xlsx-0.20.1/package/dist/xlsx.full.min.js"></script>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
overflow-x: hidden !important;
|
||||
max-width: 100vw;
|
||||
}
|
||||
#js-plotly-tester {
|
||||
left: 0 !important;
|
||||
right: auto !important;
|
||||
top: 0 !important;
|
||||
visibility: hidden !important;
|
||||
pointer-events: none !important;
|
||||
max-width: 100vw !important;
|
||||
}
|
||||
body {
|
||||
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background-color: #F8FAFC;
|
||||
|
|
@ -70,7 +82,7 @@
|
|||
|
||||
<!-- Top Navigation & Header -->
|
||||
<header class="bg-white border-b border-slate-200 sticky top-0 z-40 shadow-sm">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3.5 flex flex-wrap justify-between items-center gap-4">
|
||||
<div class="max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8 py-3.5 flex flex-wrap justify-between items-center gap-4">
|
||||
<div class="flex items-center space-x-3 space-x-reverse">
|
||||
<div class="w-10 h-10 rounded-xl bg-blue-900 text-white flex items-center justify-center font-bold text-xl shadow-md">
|
||||
<i class="fa-solid fa-graduation-cap"></i>
|
||||
|
|
@ -115,7 +127,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Sub-navigation Tabs -->
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex border-t border-slate-100">
|
||||
<div class="max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8 flex border-t border-slate-100">
|
||||
<nav class="flex space-x-6 space-x-reverse" aria-label="Tabs">
|
||||
<button onclick="switchTab('calls')" id="tabBtn-calls" class="border-b-2 border-blue-800 text-blue-900 py-3 px-2 font-bold text-xs inline-flex items-center gap-2 transition">
|
||||
<i class="fa-solid fa-phone-volume"></i>
|
||||
|
|
@ -142,7 +154,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Main Container -->
|
||||
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 flex-1 w-full space-y-6">
|
||||
<main class="max-w-[1600px] mx-auto px-4 sm:px-6 lg:px-8 py-6 flex-1 w-full space-y-6">
|
||||
|
||||
<!-- Follow-up Alert Banner (Action item for Mrs. Ajili) -->
|
||||
<div class="bg-gradient-to-r from-amber-50 to-orange-50 border-r-4 border-amber-500 p-4 rounded-xl shadow-sm flex flex-col md:flex-row items-start md:items-center justify-between gap-4">
|
||||
|
|
@ -299,7 +311,7 @@
|
|||
|
||||
<!-- Calls Table -->
|
||||
<div class="overflow-x-auto mt-4">
|
||||
<table class="w-full text-right border-collapse text-xs">
|
||||
<table class="w-full text-right border-collapse text-xs min-w-[1250px]">
|
||||
<thead>
|
||||
<tr class="bg-slate-100 text-slate-700 border-b border-slate-200">
|
||||
<th class="p-3 text-center w-12">ردیف</th>
|
||||
|
|
@ -359,7 +371,7 @@
|
|||
|
||||
<!-- Master Table -->
|
||||
<div class="overflow-x-auto mt-4 max-h-[600px] overflow-y-auto">
|
||||
<table class="w-full text-right border-collapse text-xs">
|
||||
<table class="w-full text-right border-collapse text-xs min-w-[1400px]">
|
||||
<thead class="sticky top-0 bg-slate-100 z-10">
|
||||
<tr class="text-slate-700 border-b border-slate-200">
|
||||
<th class="p-3 text-center w-16">شناسه</th>
|
||||
|
|
|
|||
Loading…
Reference in a new issue