@takagaki/cortex-decisions-viewer 0.12.25 → 0.12.26
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.
- package/dist/render.js +22 -15
- package/package.json +1 -1
package/dist/render.js
CHANGED
|
@@ -2271,31 +2271,38 @@ a:hover { text-decoration: underline; }
|
|
|
2271
2271
|
丸・cover・未設定は薄い青地に案件名の頭文字1字。同じ画像が2つの画面で
|
|
2272
2272
|
別の切れ方をすると「設定したのと違う絵が出ている」と読まれる */
|
|
2273
2273
|
.site-icon-slot { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
|
|
2274
|
+
/* 大きさは案件名(18px・太字)の文字の高さに揃える(0.12.25 の 28px はオーナー実機で
|
|
2275
|
+
「小さくて見にくい」)。**丸は overflow: hidden にしない**——右下の「+」バッジを
|
|
2276
|
+
丸の外へ少しはみ出させるため。画像側(.site-icon-img)を丸く切る */
|
|
2274
2277
|
.site-icon {
|
|
2275
2278
|
position: relative;
|
|
2276
|
-
width:
|
|
2279
|
+
width: 36px; height: 36px; border-radius: 50%;
|
|
2277
2280
|
display: flex; align-items: center; justify-content: center;
|
|
2278
2281
|
padding: 0; border: 0; background: var(--accent-weak); color: var(--accent);
|
|
2279
|
-
font-size:
|
|
2282
|
+
font-size: 16px; font-weight: 600; line-height: 1;
|
|
2280
2283
|
}
|
|
2284
|
+
/* **未設定は頭文字をはっきり出す**(ポータルの一覧カードの頭文字の丸と同じ見た目・薄くしない)。
|
|
2285
|
+
0.12.25 の「薄い頭文字+大きな+」はオーナー実機で「+だけの丸に見えて頭文字が読めない」 */
|
|
2281
2286
|
.site-icon-initial {
|
|
2282
2287
|
display: flex; align-items: center; justify-content: center;
|
|
2283
|
-
width: 100%; height: 100%;
|
|
2288
|
+
width: 100%; height: 100%; border-radius: 50%;
|
|
2284
2289
|
}
|
|
2285
|
-
/*
|
|
2286
|
-
|
|
2287
|
-
——薄い字の上の「+」で「ここに画像を置ける」を一目にする。
|
|
2288
|
-
受け口が無い案件(span.site-icon)は置けないので、薄くも「+」も付けない */
|
|
2289
|
-
button.site-icon .site-icon-initial { opacity: .45; }
|
|
2290
|
+
/* **「+」はホバー時だけ、右下に小さく重ねる**(常時は出さない)。
|
|
2291
|
+
受け口が無い案件(span.site-icon)には付かない(置けない口に誘いを出さない) */
|
|
2290
2292
|
.site-icon-plus {
|
|
2291
|
-
position: absolute;
|
|
2293
|
+
position: absolute; right: -2px; bottom: -2px;
|
|
2294
|
+
width: 16px; height: 16px; border-radius: 50%;
|
|
2292
2295
|
display: flex; align-items: center; justify-content: center;
|
|
2293
|
-
|
|
2296
|
+
background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
|
|
2297
|
+
box-shadow: 0 0 0 2px #fff;
|
|
2298
|
+
opacity: 0; transition: opacity 0.12s ease;
|
|
2294
2299
|
}
|
|
2300
|
+
button.site-icon:hover .site-icon-plus,
|
|
2301
|
+
button.site-icon[aria-expanded="true"] .site-icon-plus { opacity: 1; }
|
|
2295
2302
|
/* 設定済みの丸は画像だけ。**押せることはホバーで出す**——常時ラベルを重ねると
|
|
2296
2303
|
選んだロゴが読めなくなる(アイコンを設定した意味が薄れる) */
|
|
2297
2304
|
.site-icon-hover {
|
|
2298
|
-
position: absolute; top: 0; left: 0; right: 0; bottom: 0;
|
|
2305
|
+
position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%;
|
|
2299
2306
|
display: flex; align-items: center; justify-content: center;
|
|
2300
2307
|
background: rgba(0, 0, 0, 0.55); color: #fff;
|
|
2301
2308
|
font-size: 11px; font-weight: 600; line-height: 1;
|
|
@@ -2307,11 +2314,11 @@ button.site-icon[aria-expanded="true"] .site-icon-hover { opacity: 1; }
|
|
|
2307
2314
|
——押せない丸に指差しカーソルやリングを出すのが、画面の嘘のうちで一番たちが悪い */
|
|
2308
2315
|
button.site-icon { cursor: pointer; }
|
|
2309
2316
|
button.site-icon:hover, button.site-icon[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--accent); }
|
|
2310
|
-
.site-icon-img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
2317
|
+
.site-icon-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
|
|
2311
2318
|
/* 丸を押したときだけ出るメニュー。スロットを基準に浮かせる(ヘッダーは sticky なので
|
|
2312
2319
|
ページを送っても位置がずれない) */
|
|
2313
2320
|
.site-icon-menu {
|
|
2314
|
-
position: absolute; top:
|
|
2321
|
+
position: absolute; top: 44px; left: 0; z-index: 30; min-width: 220px;
|
|
2315
2322
|
background: #fff; border: 1px solid var(--border); border-radius: 10px;
|
|
2316
2323
|
box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 8px;
|
|
2317
2324
|
display: flex; flex-direction: column; gap: 6px;
|
|
@@ -4499,8 +4506,8 @@ ${deriveCapTile.toString()}
|
|
|
4499
4506
|
if (intake) circle.appendChild(el("span", { class: "site-icon-hover", "aria-hidden": "true", text: "変更" }));
|
|
4500
4507
|
} else {
|
|
4501
4508
|
circle.appendChild(siteIconInitialEl());
|
|
4502
|
-
//
|
|
4503
|
-
//
|
|
4509
|
+
// **未設定の押せる丸には、ホバー時だけ右下に小さく「+」を出す**(CSS の opacity)。
|
|
4510
|
+
// 頭文字ははっきり出す——0.12.25 の「薄い頭文字+大きな+」は「+だけの丸」に見えた
|
|
4504
4511
|
if (intake) circle.appendChild(el("span", { class: "site-icon-plus", "aria-hidden": "true", text: "+" }));
|
|
4505
4512
|
}
|
|
4506
4513
|
slot.appendChild(circle);
|
package/package.json
CHANGED