Commit f4b8d0f
committed
refactor!: revamp CCard title section
This commit refactors the title section of the `CCard` component with the following changes:
- Moves the close button into the title section, so that the title no longer lies behind it or is obscured by the button.
- Also moves the `title-append` slot into the title section, where it now directly follows the title (`title`).
- Changes the permissible values for the `titlePosition` property to `start` and `end` (based on Vuetify's `justify-...` logic, e.g., `justify-start` or `justify-end`).
BREAKING CHANGE: The behavior of the `title-append` slot and the `titlePosition` property have been changed.
- **`title-append` slot:**
The `title-append` slot is now located immediately to the right of the title text. If the content of this slot should continue to be aligned to the right edge of the entire title area (as was previously potentially the case), this must now be done manually by using a `v-spacer`.
- **`titlePosition`:**
The `titlePosition` property now accepts the values `'start'` or `'end'` to fit with vuetify `justify-content-...`.1 parent 9b07fdb commit f4b8d0f
2 files changed
+64
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 24 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
45 | 28 | | |
46 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
47 | 62 | | |
48 | 63 | | |
49 | 64 | | |
| |||
130 | 145 | | |
131 | 146 | | |
132 | 147 | | |
133 | | - | |
| 148 | + | |
134 | 149 | | |
135 | 150 | | |
136 | 151 | | |
| |||
207 | 222 | | |
208 | 223 | | |
209 | 224 | | |
210 | | - | |
| 225 | + | |
211 | 226 | | |
212 | 227 | | |
213 | 228 | | |
| |||
244 | 259 | | |
245 | 260 | | |
246 | 261 | | |
247 | | - | |
| 262 | + | |
248 | 263 | | |
249 | | - | |
250 | | - | |
| 264 | + | |
| 265 | + | |
251 | 266 | | |
252 | 267 | | |
253 | 268 | | |
| |||
262 | 277 | | |
263 | 278 | | |
264 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
265 | 291 | | |
266 | 292 | | |
267 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| 365 | + | |
364 | 366 | | |
365 | | - | |
366 | | - | |
| 367 | + | |
| 368 | + | |
367 | 369 | | |
368 | | - | |
| 370 | + | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| |||
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| 383 | + | |
381 | 384 | | |
382 | | - | |
383 | | - | |
| 385 | + | |
| 386 | + | |
384 | 387 | | |
385 | | - | |
| 388 | + | |
386 | 389 | | |
387 | 390 | | |
388 | 391 | | |
| |||
0 commit comments