• Resolved pedromfm

    (@pedromfm)


    Hi, I’ve created a POD (details) related to my main POD and I’ve set up a relationship – with the option to create a new one. But when I click the button the dialog that opens is very narrow – like 300px wide. I inspected the CSS and found that the width was set to “auto”.

    I ended up fixing it by adding this to my functions php file:

    add_action('admin_head', 'fix_dialog');
    
    function fix_dialog() {
      echo '<style>
        @media (min-width: 600px) {
    	
    body .components-modal__frame {
        width: 80%;
    }
    	
    }
      </style>';
    }

    I just want to let you know about it – I don’t know if this happens only on my website, but you might want to fix it.

    • This topic was modified 2 years, 1 month ago by pedromfm.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dialog for new POD in relationship is very narrow’ is closed to new replies.