josa42 / atom-blame

Show git blame as a gutter in Atom editor
https://atom.io/packages/blame
MIT License
22 stars 18 forks source link

'Default Width' config invalid in Atom 1.13.x #28

Closed mattaschmann closed 7 years ago

mattaschmann commented 7 years ago

I'm using Atom Beta 1.13-beta4. They have decided to remove the shadow dom in this version, rending this code invalid:

sheet.innerHTML = `
      atom-text-editor::shadow .gutter[gutter-name="blame"] {
        width: ${this.state.width}px;
      }
    `

It looks like this, regardless of setting.

image

I can override this for now using this in my stylesheet:

// Customization for atom-blame plugin
atom-text-editor {
  .gutter[gutter-name="blame"] .custom-decorations {
    width: 350px;
  }
}
afc163 commented 7 years ago

+1