diff --git a/public/userarea/import_edit2.php b/public/userarea/import_edit2.php index 86a1531..ca0be79 100644 --- a/public/userarea/import_edit2.php +++ b/public/userarea/import_edit2.php @@ -156,7 +156,8 @@ function fixedDefaultValue(array $f): string } input, - select { + select, + textarea { width: 100%; box-sizing: border-box; border: 1px solid #ced4da; @@ -166,10 +167,36 @@ function fixedDefaultValue(array $f): string } input, - select { + select, + textarea { color: #333; } + textarea { + resize: vertical; + min-height: 60px; + border: 1px solid #ced4da !important; + } + + textarea:focus, + textarea:active, + textarea:hover { + border: 1px solid #ced4da !important; + outline: none !important; + } + + textarea.auto-input { + background-color: #d4edda; + } + + textarea.manual-input { + background-color: #fff3cd; + } + + textarea.required-input { + background-color: #f8d7da; + } + .status-badge { display: inline-block; padding: 2px 8px; @@ -197,11 +224,12 @@ function fixedDefaultValue(array $f): string .grid-container { overflow-x: auto; - max-width: 100%; + width: 100%; margin-bottom: 20px; border: 1px solid #dee2e6; border-radius: 0.25rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + position: relative; } .grid-row { @@ -249,6 +277,55 @@ function fixedDefaultValue(array $f): string border-right: none; } + /* Sticky columns - first column (Actions) */ + .grid-header.button-header, + .grid-cell.button-cell { + position: sticky !important; + left: 0; + z-index: 9; + background: white; + overflow: visible; + flex-shrink: 0; + } + + .grid-header.button-header { + background-color: #e9ecef; + } + + .grid-row:nth-child(even) .grid-cell.button-cell { + background-color: #f8f9fa; + } + + .grid-row:hover .grid-cell.button-cell { + background-color: #e9ecef; + } + + .grid-row .grid-header:nth-child(2), + .grid-row .grid-cell:nth-child(2) { + position: sticky !important; + left: 210px; + z-index: 8; + background: white; + overflow: visible; + flex-shrink: 0; + } + + .grid-row .grid-header:nth-child(2) { + background-color: #e9ecef; + } + + .grid-row:nth-child(even) .grid-cell:nth-child(2) { + background-color: #f8f9fa; + } + + .grid-row:hover .grid-cell:nth-child(2) { + background-color: #e9ecef; + } + + .grid-row { + position: relative; + } + .grid-cell.expanded { max-width: 500px !important; white-space: normal !important; @@ -276,6 +353,8 @@ function fixedDefaultValue(array $f): string display: flex; align-items: flex-start; padding: 10px 0; + min-height: 0; + flex-wrap: nowrap; } .grid-top .grid-cell { @@ -285,6 +364,7 @@ function fixedDefaultValue(array $f): string display: flex; flex-direction: column; align-items: center; + overflow: visible; } .grid-top .save-all-cell { @@ -292,6 +372,15 @@ function fixedDefaultValue(array $f): string align-items: flex-start; } + .grid-top .grid-cell input, + .grid-top .grid-cell select, + .grid-top .grid-cell .date-picker, + .grid-top .grid-cell .fixed-top { + position: relative; + max-width: 100%; + z-index: 1; + } + .propagate-btn { background: none; border: none; @@ -489,6 +578,10 @@ function fixedDefaultValue(array $f): string font-size: 14px; } + .select2-results__options { + max-height: 400px !important; + } + .select2-container--default .select2-selection--single { height: 31px; border: 1px solid #ced4da; @@ -552,8 +645,12 @@ function fixedDefaultValue(array $f): string