Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change input /output bubble to triangle shape #163

Closed
princeyogesh opened this issue Apr 27, 2021 · 4 comments
Closed

how to change input /output bubble to triangle shape #163

princeyogesh opened this issue Apr 27, 2021 · 4 comments
Assignees
Labels
question Further information is requested Style

Comments

@princeyogesh
Copy link

No description provided.

@jerosoler jerosoler self-assigned this Apr 27, 2021
@jerosoler jerosoler added question Further information is requested Style labels Apr 27, 2021
@jerosoler
Copy link
Owner

Hello @princeyogesh

Edit with css

.drawflow .drawflow-node .input {
 // Your triangle shape
}
.drawflow .drawflow-node .output {
// Your triangle shape
}

@jerosoler
Copy link
Owner

Simple example edit demo in browser:

image

.drawflow .drawflow-node .input {
    left: -10px;
    background: transparent;
}
.drawflow .drawflow-node .output {
    right: 0px;
}
.drawflow .drawflow-node .input, .drawflow .drawflow-node .output {
    /* height: 15px; */
    /* width: 15px; */
    /* border: 2px solid var(--border-color); */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent #007bff;
    background: transparent;
    border-radius: 0px;
}

@TheoCtla
Copy link

TheoCtla commented Feb 8, 2024

Hi, i just use this css to add arrows on my diagram but when i drag a node, this happens.

This is my diagram when the page has just loaded :

image

This is my diagram afteri drag a node, the arrow remains selected until I left-click anywhere else.

image

Do you know how to fix it ?

@ElvisAns
Copy link

I think adding "user-select : none" to your custom node can be helpful, or i did not get well the question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Style
Projects
None yet
Development

No branches or pull requests

4 participants