Skip to content

embedding width #1197

Open
Open
@tribor

Description

@tribor

I have set the width to 200. however, this is not taken into account

silverbullet version: 0.10.1
browser: Firefox 133.0.3 + Chrome 131.0.6778.205

content:

start
```embed
url: https://example.com
width: 200
height: 400

screenshot:
width-bug

debug:

type: Document
from: 0
to: 66
children:
  - type: Paragraph
    from: 0
    to: 5
    children:
      - from: 0
        to: 5
        text: start
  - from: 5
    to: 6
    text:2+
  - type: FencedCode
    from: 6
    to: 66
    children:
      - type: CodeMark
        from: 6
        to: 9
        children:
          - from: 6
            to: 9
            text: '```'
      - type: CodeInfo
        from: 9
        to: 14
        children:
          - from: 9
            to: 14
            text: embed
      - from: 14
        to: 15
        text:2+
      - type: CodeText
        from: 15
        to: 62
        children:
          - from: 15
            to: 62
            text: |-
              url: https://example.com
              width: 200
              height: 400
      - from: 62
        to: 63
        text:2+
      - type: CodeMark
        from: 63
        to: 66
        children:
          - from: 63
            to: 66
            text: '```'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedIf you're willing to help, do!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions