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

Add autosize prop to mat-sidenav-container #2301

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

TheZoker
Copy link
Contributor

After adding this, the content behind the navbar seems to be indented properly:

Before:
image

After:
image

Example schema/uischema
export const schema = {
  type: 'object',
  properties: {
    bank: {
      type: 'object',
      properties: {
        name: { type: 'string' },
      },
    },
    visuals: {
      type: 'array',
      items: {
        type: 'object',
        properties: {
          visualId: {
            type: 'string',
          },
          file: {
            type: 'string',
          },
        },
        additionalProperties: false,
        additionalItems: false,
      },
    },
  },
};

export const uischema = {
  type: 'Categorization',
  elements: [
    {
      type: 'Category',
      label: 'Cat1',
      elements: [
        {
          type: 'HorizontalLayout',
          elements: [
            {
              type: 'Control',
              scope: '#/properties/bank/properties/name',
              label: 'Nom',
            },
          ],
        },
      ],
    },
    {
      type: 'Category',
      label: 'Cat2',
      elements: [
        {
          type: 'ListWithDetail',
          scope: '#/properties/visuals',
          options: {
            elementLabelProp: 'visualId',
            detail: {
              type: 'VerticalLayout',
              elements: [
                {
                  type: 'Control',
                  scope: '#/properties/visualId',
                  label: 'Identifiant du visuel',
                },
                {
                  type: 'Control',
                  scope: '#/properties/file',
                  label: 'Fichier',
                },
              ],
            },
          },
        },
      ],
    },
  ],
};

Ref: angular/components#6743

Fixes #2176

Copy link

netlify bot commented Mar 14, 2024

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 664ffbf
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/65f2425175287b0008fcc791
😎 Deploy Preview https://deploy-preview-2301--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@coveralls
Copy link

Coverage Status

coverage: 84.881%. remained the same
when pulling 664ffbf on TheZoker:fix-autosize-issue
into 24f4e5f on eclipsesource:master.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

@sdirix sdirix merged commit 4497f61 into eclipsesource:master Mar 18, 2024
8 checks passed
@TheZoker TheZoker deleted the fix-autosize-issue branch March 18, 2024 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Angular] ListWithDetail is broken inside Category
3 participants