geist-ui icon indicating copy to clipboard operation
geist-ui copied to clipboard

Popover not good in mobile

Open tienlx97 opened this issue 1 year ago • 4 comments

Bug report 🐞

Version & Environment

  • Version of browser: chorme
  • Version of geist-ui/core: latest

Expected Behaviour

The behavior I expect is popover not overflow / hidden

Actual results (or Errors)

I got an error: when I display button left or right screen. The popover will hidden if it out of screen

image

() => {
  const content = () => (
    <>
      <Popover.Item title>
        <span>User Settings</span>
      </Popover.Item>
      <Popover.Item>
        <Link href="#">A hyperlink</Link>
      </Popover.Item>
      <Popover.Item>
        <Link color href="#">A hyperlink for edit profile</Link>
      </Popover.Item>
      <Popover.Item line />
      <Popover.Item>
        <span>Command-Line</span>
      </Popover.Item>
    </>
  )
  return (
    <Popover content={content}>
      Menu
    </Popover>
  )
}

tienlx97 avatar May 10 '23 05:05 tienlx97

Bug report 🐞

Version & Environment

* Version of browser: chorme

* Version of `geist-ui/core`: latest

Expected Behaviour

The behavior I expect is popover not overflow / hidden

Actual results (or Errors)

I got an error: when I display button left or right screen. The popover will hidden if it out of screen

image

() => {
  const content = () => (
    <>
      <Popover.Item title>
        <span>User Settings</span>
      </Popover.Item>
      <Popover.Item>
        <Link href="#">A hyperlink</Link>
      </Popover.Item>
      <Popover.Item>
        <Link color href="#">A hyperlink for edit profile</Link>
      </Popover.Item>
      <Popover.Item line />
      <Popover.Item>
        <span>Command-Line</span>
      </Popover.Item>
    </>
  )
  return (
    <Popover content={content}>
      Menu
    </Popover>
  )
}

did you resolve this?

smyja avatar Jul 22 '23 09:07 smyja

@smyja I resolve by using another library ( fluentui 9 - Microsoft )

tienlx97 avatar Jul 22 '23 10:07 tienlx97

@smyja I resolve by using another library ( fluentui 9 - Microsoft )

Okay 👍🏽

smyja avatar Jul 22 '23 10:07 smyja

Hi @tienlx97 can you review my PR?

fitrahmunir avatar Nov 01 '23 06:11 fitrahmunir