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

fix(database): incorrect position of detail panel #6588

Merged
merged 1 commit into from
Mar 27, 2024

Commits on Mar 27, 2024

  1. fix(database): incorrect position of detail panel (#6588)

    close: #6337
    close: AFF-732
    close: BS-146, BS-207
    By default it will fit over the entire `document.body`.
    Can be overridden externally.
    
    example:
    ```ts
    {
      schema: RootBlockSchema,
      service: PageRootService,
      view: {
        component: literal`affine-page-root`,
        widgets: {
          [AFFINE_INNER_MODAL_WIDGET]: literal`${unsafeStatic(AFFINE_INNER_MODAL_WIDGET)}`,
        },
      },
      setup: function(slots) {
        slots.widgetConnected.on(({ component }) => {
          if (component instanceof AffineInnerModalWidget) {
            component.setTarget(() => {
              return document.body.querySelector('.xxx') ?? document.body;
            });
          }
        });
      },
    }
    ```
    zzj3720 committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    e25a911 View commit details
    Browse the repository at this point in the history