• Resolved emilycestmoi

    (@emilycestmoi)


    Within the Contact Form 7 AntiSpam admin configuration options the actual options are contained within a <div class=”card main-options” />. The “card” class forces the div to a max-width of 520px with default wordpress admin css files making it awkward to adjust many of the options. If the “card” class is removed everything works as expected and the option styling follows other plugins. I propose that the “card” class be removed:

    --- cf7-antispam/admin/admin-display.php.orig	2023-02-11 12:59:14.000000000 -0500
    +++ cf7-antispam/admin/admin-display.php	2023-02-11 12:59:24.000000000 -0500
    @@ -90,7 +90,7 @@
     		</div>
     	</div>
    
    -	<div class="card main-options">
    +	<div class="main-options">
     		<h3><?php esc_html__( 'Options', 'cf7-antispam' ); ?></h3>
     		<form method="post" action="options.php" id="cf7a_settings">
     			<?php
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Erik

    (@codekraft)

    but I liked it shaped like a card ??

    if I widen cards to 900px, can it work for you? Will look like below:

    Thread Starter emilycestmoi

    (@emilycestmoi)

    Haha, yes that’s better, but why constrain it to a card at all?–it’s a non-standard approach? ??

    Plugin Author Erik

    (@codekraft)

    Because yes, it’s a common pattern for WordPress options, but i don’t like it too much!

    The reason is that lines with more than 100 characters are really difficult to read (in short when you go back to the beginning of the next line you will have difficulty understanding where you started), that’s why I always avoid making the lines go from one side of the screen to the other!

    If you like 900px you can file an issue / open PR on github? I will include this changes in the next update. Thanks you for the suggestions!

    Plugin Author Erik

    (@codekraft)

    Cf7-antispam v0.4.5 includes this enhancement. Thanks for the contribution ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Configuration options does not expand’ is closed to new replies.