Created
January 11, 2021 19:56
-
-
Save ramonfincken/ae2859eb26ebec6cb630df1c59343cd4 to your computer and use it in GitHub Desktop.
Increase gutenberg sidebar width
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'admin_head', [ $this, 'gutenberg_sidebar_more_width' ] ); | |
public static function gutenberg_sidebar_more_width() { | |
?> | |
<style> | |
@media (min-width: 782px) { | |
.interface-interface-skeleton__sidebar { width: 450px !important; } | |
.interface-complementary-area { width: 450px !important; } | |
} | |
@media (min-width: 1182px) { | |
.interface-interface-skeleton__sidebar { width: 550px !important; } | |
.interface-complementary-area { width: 550px !important; } | |
} | |
</style> | |
<?php | |
} |
I am open to suggestions to make this less hacky ..
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://twitter.com/ramonfincken/status/1348719146616451080