@loafacto/ui 0.22.0 → 0.22.2
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +48 -16
- package/package.json +1 -1
package/dist/loafacto-ui.css
CHANGED
|
@@ -326,9 +326,27 @@ html {
|
|
|
326
326
|
* ── 짝으로 overflow-wrap 을 둔다 ────────────────────────────────────
|
|
327
327
|
*
|
|
328
328
|
* `keep-all` 만 두면 **띄어쓰기가 없는 긴 문자열**(러너 id·API 키·URL·긴 영단어)이 끊을
|
|
329
|
-
* 자리를 못 찾아 상자를 뚫고 나간다. `
|
|
329
|
+
* 자리를 못 찾아 상자를 뚫고 나간다. `break-word` 는 「안 끊으면 넘치는 경우에만」 끊으라는
|
|
330
330
|
* 뜻이라, 평소에는 어절을 지키고 넘칠 때만 글자 단위로 내려간다.
|
|
331
331
|
*
|
|
332
|
+
* ⚠ **`anywhere` 가 아니다.** 둘 다 「넘칠 때만 끊는다」는 같지만, `anywhere` 는 그 끊을
|
|
333
|
+
* 자리를 **min-content 계산에도 넣는다** — 「어디서든 끊을 수 있다」고 보므로 상자의
|
|
334
|
+
* 최소 폭이 **글자 하나**가 된다. `break-word` 는 min-content 를 건드리지 않는다.
|
|
335
|
+
*
|
|
336
|
+
* 실측(한글 「키 이름과 접두어」의 min-content):
|
|
337
|
+
* anywhere 15px ← 글자 하나
|
|
338
|
+
* break-word 44px
|
|
339
|
+
* normal 44px
|
|
340
|
+
*
|
|
341
|
+
* 이 차이가 **자동 폭 표를 망가뜨린다.** `table-layout: auto` 는 칸의 min-content 를 보고
|
|
342
|
+
* 폭을 나누므로, 칸 하나가 15px 까지 쪼그라들고 그 안의 글자가 세로로 쌓인다. 실제로
|
|
343
|
+
* 0.21.0 에서 hub 의 LLM 키 표가 그랬다 — 첫 칸이 59×234px 가 되어 한 행이 234px 높이로
|
|
344
|
+
* 섰다(창 902px). `break-word` 로 바꾸니 126×70px 로 돌아왔다. flex 항목도 같은 이유로
|
|
345
|
+
* 쪼그라든다. 0.22.1 에서 고쳤다.
|
|
346
|
+
*
|
|
347
|
+
* 넘침 방지력은 똑같다 — 폭 120px 상자에 러너 id·URL 을 넣고 재 보면 둘 다 120px 안에
|
|
348
|
+
* 들어온다(`normal` 은 289px·469px 로 넘친다).
|
|
349
|
+
*
|
|
332
350
|
* ── `*` 가 아니라 `:root` 인 것 ──────────────────────────────────────
|
|
333
351
|
*
|
|
334
352
|
* 둘 다 상속되는 속성이라 루트에 한 번 두면 전부 따라온다. `*` 로 두면 모든 요소에 값이
|
|
@@ -341,7 +359,7 @@ html {
|
|
|
341
359
|
*/
|
|
342
360
|
:root {
|
|
343
361
|
word-break: keep-all;
|
|
344
|
-
overflow-wrap:
|
|
362
|
+
overflow-wrap: break-word;
|
|
345
363
|
}
|
|
346
364
|
|
|
347
365
|
/* 셸 하위 전체를 border-box 로 둔다.
|
|
@@ -777,7 +795,7 @@ html {
|
|
|
777
795
|
}
|
|
778
796
|
|
|
779
797
|
/* 셸의 .lf-glass + .lf-icon-btn 과 같은 값 — 둘 중 하나를 고치면 다른 쪽도 고친다. */
|
|
780
|
-
.lf-shell-btn[data-v-
|
|
798
|
+
.lf-shell-btn[data-v-de6738d7] {
|
|
781
799
|
position: relative;
|
|
782
800
|
display: inline-flex;
|
|
783
801
|
align-items: center;
|
|
@@ -798,21 +816,21 @@ html {
|
|
|
798
816
|
-webkit-app-region: no-drag;
|
|
799
817
|
transition: background var(--lf-dur-fast, 0.15s), border-color var(--lf-dur-fast, 0.15s), box-shadow var(--lf-dur-fast, 0.15s), color var(--lf-dur-fast, 0.15s);
|
|
800
818
|
}
|
|
801
|
-
.lf-shell-btn[data-v-
|
|
802
|
-
.lf-shell-btn[data-v-
|
|
803
|
-
.lf-shell-btn--on[data-v-
|
|
819
|
+
.lf-shell-btn[data-v-de6738d7]:hover,
|
|
820
|
+
.lf-shell-btn[data-v-de6738d7]:focus-visible,
|
|
821
|
+
.lf-shell-btn--on[data-v-de6738d7] {
|
|
804
822
|
background: var(--admin-hover, rgba(255, 255, 255, 0.05));
|
|
805
823
|
border-color: var(--admin-accent, #60a5fa);
|
|
806
824
|
color: var(--admin-text-heading, #f9fafb);
|
|
807
825
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
808
826
|
}
|
|
809
|
-
.lf-shell-btn[data-v-
|
|
827
|
+
.lf-shell-btn[data-v-de6738d7]:focus-visible { outline: none;
|
|
810
828
|
}
|
|
811
|
-
.lf-shell-btn[data-v-
|
|
829
|
+
.lf-shell-btn[data-v-de6738d7] svg {
|
|
812
830
|
width: 1.125rem;
|
|
813
831
|
height: 1.125rem;
|
|
814
832
|
}
|
|
815
|
-
.lf-shell-btn__dot[data-v-
|
|
833
|
+
.lf-shell-btn__dot[data-v-de6738d7] {
|
|
816
834
|
position: absolute;
|
|
817
835
|
top: 0.45rem;
|
|
818
836
|
right: 0.5rem;
|
|
@@ -821,9 +839,9 @@ html {
|
|
|
821
839
|
border-radius: 50%;
|
|
822
840
|
background: var(--admin-status-warning, #b7791f);
|
|
823
841
|
box-shadow: 0 0 0 2px var(--admin-surface, #fff);
|
|
824
|
-
animation: lf-shell-dot-in-
|
|
842
|
+
animation: lf-shell-dot-in-de6738d7 var(--lf-dur-slow, 0.32s) var(--lf-ease-spring, ease);
|
|
825
843
|
}
|
|
826
|
-
@keyframes lf-shell-dot-in-
|
|
844
|
+
@keyframes lf-shell-dot-in-de6738d7 {
|
|
827
845
|
from { transform: scale(0);
|
|
828
846
|
}
|
|
829
847
|
60% { transform: scale(1.3);
|
|
@@ -832,15 +850,29 @@ to { transform: scale(1);
|
|
|
832
850
|
}
|
|
833
851
|
}
|
|
834
852
|
@media (prefers-reduced-motion: reduce) {
|
|
835
|
-
.lf-shell-btn__dot[data-v-
|
|
853
|
+
.lf-shell-btn__dot[data-v-de6738d7] { animation: none;
|
|
836
854
|
}
|
|
837
855
|
}
|
|
838
|
-
/*
|
|
839
|
-
|
|
856
|
+
/*
|
|
857
|
+
* 데스크톱 앱 — 상단바가 낮다(셸 base.css 의 lf-icon-btn 규칙과 같은 값).
|
|
858
|
+
*
|
|
859
|
+
* ⚠ **선택자를 통째로 `:global()` 안에 넣는다.** `:global(html.is-desktop) .lf-shell-btn` 처럼
|
|
860
|
+
* 밖에 두면 컴파일러가 **`:global()` 뒤를 버리고 루트 선택자만 남긴다.** 그러면 치수가
|
|
861
|
+
* `html` 자체에 걸려 **문서 전체가 28px 폭으로 쪼그라든다.**
|
|
862
|
+
* 0.21.0 ~ 0.22.1 이 그렇게 나갔고, agent 콘솔의 앱 창에서 html·body 가 1024 → 14.4px 가
|
|
863
|
+
* 됐다. 0.22.2 에서 고쳤다.
|
|
864
|
+
*
|
|
865
|
+
* 브라우저에서는 `html` 에 `is-desktop` 이 안 붙어서 아무 일도 없었다 — 앱 창에서만 터진다.
|
|
866
|
+
* 그래서 갤러리로도, 라이브 사이트로도 안 잡혔다.
|
|
867
|
+
*
|
|
868
|
+
* 확인하는 법: 빌드한 뒤 `grep -o "html\.is-desktop[^{]*{" dist/loafacto-ui.css` 로 보고,
|
|
869
|
+
* **뒤에 클래스가 없는 줄이 나오면 같은 버그다.**
|
|
870
|
+
*/
|
|
871
|
+
html.is-desktop .lf-shell-btn { width: 1.75rem; height: 1.75rem;
|
|
840
872
|
}
|
|
841
|
-
html.is-desktop,html.is-desktop { width: 0.9rem !important; height: 0.9rem !important;
|
|
873
|
+
html.is-desktop .lf-shell-btn svg,html.is-desktop .lf-shell-btn .lf-icon { width: 0.9rem !important; height: 0.9rem !important;
|
|
842
874
|
}
|
|
843
|
-
html.is-desktop { top: 0.3rem; right: 0.35rem; width: 0.4rem; height: 0.4rem;
|
|
875
|
+
html.is-desktop .lf-shell-btn__dot { top: 0.3rem; right: 0.35rem; width: 0.4rem; height: 0.4rem;
|
|
844
876
|
}
|
|
845
877
|
|
|
846
878
|
.lf-theme-icon--spin[data-v-ea1dae0b] {
|