@iasiv5/dsh-skins 1.5.28 → 1.5.30

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/lib/client.js +13 -6
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -1851,7 +1851,10 @@ ${references.join("\n")}`,
1851
1851
  '[data-slot="sidebar.footer.action"]>*{flex:none;min-width:0}',
1852
1852
  ".dsh-skins-switcher-wrap{width:100%}",
1853
1853
  ".dsh-skins-switcher-wrap.rail{display:flex;justify-content:center}",
1854
- ".dsh-skins-switcher-btn{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:calc(100% + 4px);height:42px;margin:4px -2px;padding:0 10px 0 8px;border:0;border-radius:12px;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:14px;line-height:22px;cursor:pointer;overflow:hidden}",
1854
+ // 2026-11-09(对齐 dsh-m issue #55):弃 width+4px/margin -2px/10-8 不对称 padding 的全宽外溢
1855
+ // trick,改宿主规范形——border-inline 透明边吃 paint-inset + padding 9/9,内容起点 8+3+9=20px
1856
+ // 与官方面板行/设置行/dsh-m 入口同刻度(原 14px,dsh-m 对齐后本条成为唯一 6px 出列者,主人截图实证)
1857
+ ".dsh-skins-switcher-btn{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;height:42px;margin:4px 0;padding:0 9px;border:0;border-inline:var(--dsh-sidebar-paint-inset,3px) solid transparent;border-radius:var(--dsw-radius-md,12px);background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:14px;line-height:22px;cursor:pointer;overflow:hidden}",
1855
1858
  ".dsh-skins-switcher-wrap.rail .dsh-skins-switcher-btn{width:36px;height:36px;margin:8px 0 10px;padding:0;justify-content:center;border-radius:50%;gap:0}",
1856
1859
  ".dsh-skins-switcher-btn:hover{background:var(--dsw-alias-interactive-bg-hover)}",
1857
1860
  ".dsh-skins-switcher-btn.on,.dsh-skins-switcher-btn[aria-expanded=true]{background:var(--dsw-specific-sidebar-nav-item-active)}",
@@ -2973,7 +2976,7 @@ ${references.join("\n")}`,
2973
2976
  if (typeof extension !== "string" || !/^[a-z0-9]+$/.test(extension)) {
2974
2977
  throw new RangeError(`builtinAssetUrl: invalid extension ${JSON.stringify(extension)}`);
2975
2978
  }
2976
- const rev = "1.5.28";
2979
+ const rev = "1.5.30";
2977
2980
  return `/dsh-skins/assets/b_${skinId}_${assetKey}.${extension}?v=${rev}`;
2978
2981
  }
2979
2982
 
@@ -3049,14 +3052,18 @@ ${references.join("\n")}`,
3049
3052
 
3050
3053
  // src/client/skins/decoration.js
3051
3054
  var BUBBLE_HOOKS = {
3052
- chat: { exact: "Sixlwa_bubble", container: "userStack" },
3055
+ chat: { exact: null, container: "userStack" },
3053
3056
  goal: { exact: "oRe1gG_bubble", container: "_stack" },
3054
3057
  bubbleLocal: "_bubble"
3055
3058
  };
3056
- var unionSelector = (hook) => `:is([class*="${hook.exact}"], [class*="${hook.container}"] > [class*="${BUBBLE_HOOKS.bubbleLocal}"])`;
3059
+ var unionSelector = (hook) => hook.exact === null ? `[class*="${hook.container}"] > [class*="${BUBBLE_HOOKS.bubbleLocal}"]` : `:is([class*="${hook.exact}"], [class*="${hook.container}"] > [class*="${BUBBLE_HOOKS.bubbleLocal}"])`;
3060
+ var BUBBLE_SELECTORS = {
3061
+ chat: unionSelector(BUBBLE_HOOKS.chat),
3062
+ goal: unionSelector(BUBBLE_HOOKS.goal)
3063
+ };
3057
3064
  function decorationCss(scope, palette) {
3058
- const chat = unionSelector(BUBBLE_HOOKS.chat);
3059
- const goal = unionSelector(BUBBLE_HOOKS.goal);
3065
+ const chat = BUBBLE_SELECTORS.chat;
3066
+ const goal = BUBBLE_SELECTORS.goal;
3060
3067
  return [
3061
3068
  `${scope} ${chat}{border:1px solid rgba(${palette.light}, 0.38);box-shadow:0 1px 4px rgba(${palette.light}, 0.10)}`,
3062
3069
  `${scope}[data-ds-dark-theme] ${chat}{border-color:rgba(${palette.dark}, 0.38);box-shadow:0 1px 6px rgba(${palette.dark}, 0.10)}`,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iasiv5/dsh-skins",
3
3
  "description": "DSH Web 皮肤插件:多套品牌皮肤侧栏热切换。",
4
4
  "icon": "./icon.svg",
5
- "version": "1.5.28",
5
+ "version": "1.5.30",
6
6
  "homepage": "https://github.com/iasiv5/dsh-skins#readme",
7
7
  "repository": {
8
8
  "type": "git",