/** * FORÇAR LAYOUT HORIZONTAL NA LISTA DE POSTS (ADMIN) * Corrige bug de texto vertical no Midnight Blogger */ function corrigir_posts_verticais_admin() { ?> /* =================================== FORÇAR LAYOUT HORIZONTAL - POSTS MIDNIGHT BLOGGER - GAPING NEWS =================================== */ /* Reset total de writing-mode */ .wp-list-table, .wp-list-table *, #the-list, #the-list *, .wp-list-table tr, .wp-list-table td, .wp-list-table th, .column-title, .column-author, .column-categories, .column-tags, .column-comments, .column-date, .has-row-color, .post-row { writing-mode: horizontal-tb !important; text-orientation: mixed !important; -webkit-writing-mode: horizontal-tb !important; -moz-writing-mode: horizontal-tb !important; -ms-writing-mode: horizontal-tb !important; white-space: nowrap !important; word-wrap: normal !important; overflow-wrap: normal !important; word-break: normal !important; display: table-cell !important; vertical-align: middle !important; float: none !important; clear: none !important; position: static !important; transform: none !important; -webkit-transform: none !important; -moz-transform: none !important; max-width: none !important; width: auto !important; min-width: 50px !important; } /* Forçar larguras específicas */ .column-title { width: 300px !important; min-width: 200px !important; } .column-author { width: 150px !important; min-width: 100px !important; } .column-categories { width: 150px !important; min-width: 100px !important; } .column-date { width: 120px !important; min-width: 100px !important; } .column-comments { width: 80px !important; min-width: 60px !important; } /* Garantir que cada linha da tabela seja horizontal */ .wp-list-table tr { display: table-row !important; width: 100% !important; } /* Reset de qualquer rotação */ .wp-list-table *, #the-list * { transform: rotate(0deg) !important; -webkit-transform: rotate(0deg) !important; -moz-transform: rotate(0deg) !important; -ms-transform: rotate(0deg) !important; } /* ========================================== ANTÍDOTO CONTRA CSS FANTASMA NO ADMIN Força layout horizontal na lista de Posts ========================================== */ /* Aplica apenas na área administrativa (.wp-admin) */ .wp-admin .wp-list-table td, .wp-admin .wp-list-table th, .wp-admin .column-title, .wp-admin .column-author, .wp-admin .column-categories, .wp-admin .column-date, .wp-admin .row-actions, .wp-admin .check-column, .wp-admin .has-row-color { writing-mode: horizontal-tb !important; text-orientation: mixed !important; display: table-cell !important; max-width: none !important; width: auto !important; white-space: normal !important; word-break: normal !important; float: none !important; transform: none !important; } /* Garante que as linhas da tabela ocupem a largura total */ .wp-admin .wp-list-table tr { display: table-row !important; width: 100% !important; } /* Força larguras mínimas para as colunas não colapsarem */ .wp-admin .column-title { min-width: 250px !important; } .wp-admin .column-author { min-width: 120px !important; } .wp-admin .column-date { min-width: 100px !important; }

Search on this blog