@madeinbruno/atelier 0.7.0 → 0.7.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/package.json +1 -1
  2. package/styles.css +15 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madeinbruno/atelier",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "madeinbruno.com 서비스들이 같이 쓰는 공용 컴포넌트 (옷 만드는 작업실 컨셉: 택, 라벨, 도장…)",
5
5
  "license": "MIT",
6
6
  "author": "codingbotPark <pbk575@gmail.com>",
package/styles.css CHANGED
@@ -193,27 +193,34 @@
193
193
  }
194
194
 
195
195
  /* 툴팁: 기호 위에 작은 글씨가 뜬다 (CSS만, 스크립트 없음).
196
- 세탁 표시 줄이 택 왼쪽에 붙어 있으므로 기호 왼쪽 끝에서 오른쪽으로 펼쳐 택·화면 밖으로 나가지 않게 한다. */
197
- .mib-tag__care-item {
196
+ 기호가 아니라 세탁 표시 줄(.mib-tag__care, 택 안쪽 폭) 기준으로 띄운다: 줄 왼쪽 끝에서 시작하고
197
+ 폭은 줄을 넘지 않으며, 길면 잘라내지 않고 줄을 바꿔 끝까지 보여 준다. 그래서 택 밖으로 나가지 않는다. */
198
+ .mib-tag__care {
198
199
  position: relative;
200
+ }
201
+
202
+ .mib-tag__care-item {
199
203
  display: flex;
200
204
  }
201
205
 
202
206
  .mib-tag__care-item[data-tip]::after {
203
207
  content: attr(data-tip);
204
208
  position: absolute;
205
- bottom: calc(100% + 8px);
209
+ bottom: calc(100% + 6px);
206
210
  left: 0;
211
+ width: max-content;
212
+ max-width: 100%;
213
+ box-sizing: border-box;
207
214
  padding: 4px 8px;
208
215
  border-radius: 4px;
209
216
  background: var(--mib-ink);
210
217
  color: #fff;
211
218
  font-size: 11px;
212
- line-height: 1.3;
213
- white-space: nowrap;
214
- max-width: 240px;
215
- overflow: hidden;
216
- text-overflow: ellipsis;
219
+ line-height: 1.4;
220
+ white-space: normal;
221
+ /* 한국어는 단어 중간이 아니라 띄어쓰기에서 줄을 바꾼다. 아주 긴 한 단어만 어쩔 수 없이 자른다 */
222
+ word-break: keep-all;
223
+ overflow-wrap: anywhere;
217
224
  pointer-events: none;
218
225
  opacity: 0;
219
226
  transform: translateY(2px);