hyper-windowtint 0.3.0 → 0.3.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 (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/index.js +12 -12
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to `hyper-windowtint` will be documented here.
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.1] - 2026-05-16
9
+
10
+ ### Fixed
11
+ - Critical: plugin CSS no longer overrides `.hyper_main`'s `position: fixed`.
12
+ In 0.3.0 the plugin added `position: relative`, which Hyper's CSS-in-JS
13
+ scoping elevated to higher specificity than Hyper's own rule. `.hyper_main`
14
+ then collapsed to its content-height (~2px) and the entire terminal area
15
+ rendered as an unusable black rectangle (visible tint border + corner badge,
16
+ but no tabs and no terminal canvas). The border is now drawn as an inset
17
+ `box-shadow` directly on `.hyper_main` without touching `position`, so the
18
+ fixed-positioning context from Hyper is preserved.
19
+
8
20
  ## [0.3.0] - 2026-05-16
9
21
 
10
22
  ### Added
package/index.js CHANGED
@@ -568,20 +568,20 @@ exports.decorateConfig = (config) => {
568
568
  z-index: 1000;
569
569
  }` : '';
570
570
 
571
+ // Render the border as an inset box-shadow directly on `.hyper_main`. Hyper
572
+ // sets `.hyper_main` to `position: fixed; inset: 0` so it fills the window;
573
+ // we must NOT override `position` here, or the element collapses to its
574
+ // content-height (~2px) and the entire terminal disappears. The badge
575
+ // pseudo-element below stays inside `.hyper_main`'s fixed positioning
576
+ // context, so `position: absolute` on the badge still anchors correctly.
577
+ const borderWidth = userOpts.borderWidth || '3px';
571
578
  const css = `
572
- /* hyper-windowtint v0.2 */
579
+ /* hyper-windowtint v0.3 */
573
580
  .hyper_main {
574
- position: relative;
575
- }
576
- .hyper_main::before {
577
- content: '';
578
- position: absolute;
579
- inset: 0;
580
- pointer-events: none;
581
- border: ${userOpts.borderWidth} solid var(--tint-color, transparent);
582
- box-shadow: inset 0 0 28px -10px var(--tint-glow, transparent);
583
- z-index: 999;
584
- transition: border-color 0.25s ease, box-shadow 0.25s ease;
581
+ box-shadow:
582
+ inset 0 0 0 ${borderWidth} var(--tint-color, transparent),
583
+ inset 0 0 28px -10px var(--tint-glow, transparent);
584
+ transition: box-shadow 0.25s ease;
585
585
  }
586
586
  .hyper_main .tabs_title,
587
587
  .hyper_main .tabs_borderShim {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyper-windowtint",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Give Hyper terminal tabs distinct color tints, matching tabs from the same project during the current Hyper session.",
5
5
  "main": "index.js",
6
6
  "files": [