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

Viewport Control is in front of Action Bar #656

Open
theophilhenry opened this issue Oct 15, 2024 · 3 comments
Open

Viewport Control is in front of Action Bar #656

theophilhenry opened this issue Oct 15, 2024 · 3 comments
Assignees
Labels
ready Assumed ready enough to start type: bug 🐛

Comments

@theophilhenry
Copy link

image

Hi, I'm currently in Puck version "@measured/puck": "^0.16.1"

In the top current of my items, the viewport control is in front of my action bar (to delete and etc). I can't see the action bar. Is there any workaround for this? Thanks!

@theophilhenry
Copy link
Author

The workaround I do is using linebreak on actionbar override

image

It works for now, let me know if there's other way, or am I doing something wrong... I'm using NextJS

 {
        actionBar: ({children}) => (
          <div className="z-50">
            <br/>
            <br/>
          <ActionBar label="Actions">
            <ActionBar.Group>{children}</ActionBar.Group>
          </ActionBar>
          </div>
        )
      }

@bakikucukcakiroglu
Copy link

I'm having the same issue!

@chrisvxd
Copy link
Member

This is an issue when the component is the first item on the page, and smaller than action bar.

There's not any good fix yet, but I can look at using some JS to account for this, similar to what I'm doing for the new drag-and-drop engine if the item is too narrow and the action bar clips off the left of the screen.

@chrisvxd chrisvxd self-assigned this Dec 18, 2024
@chrisvxd chrisvxd added ready Assumed ready enough to start and removed in triage labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Assumed ready enough to start type: bug 🐛
Projects
None yet
Development

No branches or pull requests

3 participants