Skip to content

Commit ca074da

Browse files
jyotibansal461actuallyakash
authored andcommitted
image width calculation correct
1 parent 615bdb4 commit ca074da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

widgets/howto.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,7 +2185,7 @@ protected function register_controls() {
21852185
[
21862186
'label' => __( 'Image Width', 'mighty' ),
21872187
'type' => Controls_Manager::SLIDER,
2188-
'size_units' => [ '%', 'px', 'em' ],
2188+
'size_units' => [ '%' ],
21892189
'range' => [
21902190
'%' => [
21912191
'min' => 1,
@@ -2209,7 +2209,7 @@ protected function register_controls() {
22092209
],
22102210
'selectors' => [
22112211
'{{WRAPPER}} .mt-how-to-step-image' => 'width: {{SIZE}}{{UNIT}}',
2212-
'{{WRAPPER}} .mt-how-to-step-content' => 'width: (100% - {{SIZE}}{{UNIT}})',
2212+
'{{WRAPPER}} .mt-how-to-step-content' => 'width: calc(100% - {{SIZE}}{{UNIT}})',
22132213
],
22142214
]
22152215
);

0 commit comments

Comments
 (0)