vue-moveable icon indicating copy to clipboard operation
vue-moveable copied to clipboard

How to hide blue lines?

Open Evan-Millikan opened this issue 4 years ago • 4 comments

I want to make the page an edit page. Thus, when on edit page there is a blue line and everything is draggable and such but when you press save everything is "saved" and i want to hide the blue lines.

Is there a way to hide the blue lines surrounding your html elements?

Evan-Millikan avatar Aug 19 '20 07:08 Evan-Millikan

I'm having the same issue.. Can't hide the blue lines!

tnorbs avatar Nov 03 '20 19:11 tnorbs

You can hide the blue lines by including this CSS in an appropriate place:

.moveable-control-box { opacity: 0; }

In my project, I included it in the parent component in an unscoped style tag.

L-wo avatar Nov 04 '20 13:11 L-wo

You should change all states of moveable object to false (keepRatio or throttle can be origin):

moveable: {
     draggable: false,
     throttleDrag: 1,
     resizable: false,
     throttleResize: 1,
     keepRatio: true,
     scalable: false,
     throttleScale: 1,
     rotatable: false,
     throttleRotate: 1,
     pinchable: false,
     origin: false
}

by doing this, element wouldn't have movable possibility. or To save movable, you should look at css tables in developer console (in browser), and find one which sets color to editlines. (In firefox go to your site and press SHIFT + F7 to access all css tables, so you can play with visibility of tables and put your properties in code)

rosoksdev avatar Dec 07 '20 16:12 rosoksdev

Set the following CSS in your project:

.moveable-line {
  background-color: transparent !important;
}

umonaca avatar Jan 05 '21 21:01 umonaca