Skip to content

Commit

Permalink
Removes RangeControls marks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 10, 2021
1 parent 0bcd21b commit 690b3f9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/block-library/src/media-text/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,6 @@ const TEMPLATE = [
],
];

const WIDTH_SCALE_MARKS = [
{
value: 25,
label: '25%',
},
{
value: 50,
label: '50%',
},
{
value: 75,
label: '75%',
},
];
// this limits the resize to a safe zone to avoid making broken layouts
const WIDTH_CONSTRAINT_PERCENTAGE = 15;
const applyWidthConstraints = ( width ) =>
Expand Down Expand Up @@ -296,7 +282,6 @@ function MediaTextEdit( { attributes, isSelected, setAttributes } ) {
<RangeControl
label={ __( 'Media width' ) }
value={ temporaryMediaWidth || mediaWidth }
marks={ WIDTH_SCALE_MARKS }
onChange={ commitWidthChange }
min={ WIDTH_CONSTRAINT_PERCENTAGE }
max={ 100 - WIDTH_CONSTRAINT_PERCENTAGE }
Expand Down

0 comments on commit 690b3f9

Please sign in to comment.