tabby-glass-menu 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -65,7 +65,7 @@ const CSS = `
65
65
  position: fixed;
66
66
  z-index: 2147483000;
67
67
  box-sizing: border-box;
68
- min-width: 180px;
68
+ min-width: 200px;
69
69
  max-width: 440px;
70
70
  max-height: calc(100vh - ${2 * EDGE_MARGIN}px);
71
71
  overflow-x: hidden;
@@ -99,7 +99,7 @@ const CSS = `
99
99
  display: flex;
100
100
  align-items: center;
101
101
  gap: 12px;
102
- padding: 5px 10px;
102
+ padding: 5px 14px;
103
103
  border-radius: calc(var(--tgm-radius) * 0.6);
104
104
  white-space: nowrap;
105
105
  cursor: default;
@@ -208,7 +208,9 @@ class GlassMenu {
208
208
  this.applySettings(el)
209
209
 
210
210
  const panel = { el, rows: [], active: -1, parentRow }
211
- if (items.some(i => ['checkbox', 'radio'].includes(itemType(i)))) {
211
+ // the check column only when something is checked: an empty one would
212
+ // push every label to the right
213
+ if (items.some(i => ['checkbox', 'radio'].includes(itemType(i)) && i.checked)) {
212
214
  el.classList.add('tgm-has-checks')
213
215
  }
214
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-glass-menu",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Translucent, blurred context menus for Tabby instead of Electron's opaque native ones",
5
5
  "keywords": [
6
6
  "tabby-plugin",