moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Line break in the corner

Open MRJCrunch opened this issue 1 year ago • 4 comments

Environments

  • Framework name: N/A
  • Framework version: N/A
  • Moveable Component version: 0.51.1

Description

I want to change line thickness from 1px to 2px but after this style change I see a line break in the corner

.moveable-line.moveable-direction {
  height: 2px;
}
image image

How can I avoid it?

MRJCrunch avatar Aug 30 '23 09:08 MRJCrunch

You'll have to modify the width/positioning of the lines to be +x/-x, where x is the height delta.

SidIcarus avatar Oct 03 '23 13:10 SidIcarus

@SidIcarus

  • croact-moveable 0.8.0
  • @moveable/helper 0.1.3
  • lit-moveable 0.29.0
  • moveable 0.52.0
  • preact-moveable 0.54.0
  • react-moveable 0.55.0
  • svelte-moveable 0.44.0
  • vue-moveable 2.0.0-beta.86
  • vue3-moveable 0.27.0
  • ngx-moveable 0.49.0

moveable' s new version is released. Added line size calculation.

daybrush avatar Oct 28 '23 06:10 daybrush

@daybrush thanks for the fix! It works well for 1px lines, but we set the height of rendering lines to 2px and it has a little break.

.moveable-line.moveable-direction {
    height: 2px !important;
 }

Can we fix it somehow?

MRJCrunch avatar Oct 30 '23 11:10 MRJCrunch

@daybrush

Because this calculates and sets CSS, it is difficult to support the problem of broken corners.

daybrush avatar Oct 31 '23 15:10 daybrush