|
11 | 11 | v-for="item in items"
|
12 | 12 | :key="itemKey(item)"
|
13 | 13 | >
|
14 |
| - <app-icon v-if="item.obj?.type === 'audio'" icon="carbon:document-audio" height="24" /> |
15 |
| - <app-icon v-if="item.obj?.type === 'documents'" icon="carbon:document" height="24" /> |
16 |
| - <app-icon v-if="item.obj?.type === 'events'" icon="carbon:event" height="24" /> |
17 |
| - <app-icon v-if="item.obj?.type === 'files'" icon="carbon:document-blank" height="24" /> |
18 |
| - <app-icon v-if="item.obj?.type === 'images'" icon="carbon:image" height="24" /> |
19 |
| - <app-icon v-if="item.obj?.type === 'links'" icon="carbon:link" height="24" /> |
20 |
| - <app-icon v-if="item.obj?.type === 'locations'" icon="carbon:location" height="24" /> |
21 |
| - <app-icon v-if="item.obj?.type === 'news'" icon="carbon:calendar" height="24" /> |
22 |
| - <app-icon v-if="item.obj?.type === 'profiles'" icon="carbon:person" height="24" /> |
23 |
| - <app-icon v-if="item.obj?.type === 'publications'" icon="carbon:wikis" height="24" /> |
24 |
| - <app-icon v-if="item.obj?.type === 'videos'" icon="carbon:video" height="24" /> |
| 14 | + <div class="placeholder-item-name"> |
| 15 | + <app-icon icon="carbon:document-audio" |
| 16 | + height="24" |
| 17 | + v-if="item.obj?.type === 'audio'" |
| 18 | + /> |
| 19 | + <app-icon icon="carbon:document" |
| 20 | + height="24" |
| 21 | + v-if="item.obj?.type === 'documents'" |
| 22 | + /> |
| 23 | + <app-icon icon="carbon:event" |
| 24 | + height="24" |
| 25 | + v-if="item.obj?.type === 'events'" |
| 26 | + /> |
| 27 | + <app-icon icon="carbon:document-blank" |
| 28 | + height="24" |
| 29 | + v-if="item.obj?.type === 'files'" |
| 30 | + /> |
| 31 | + <app-icon icon="carbon:image" |
| 32 | + height="24" |
| 33 | + v-if="item.obj?.type === 'images'" |
| 34 | + /> |
| 35 | + <app-icon icon="carbon:link" |
| 36 | + height="24" |
| 37 | + v-if="item.obj?.type === 'links'" |
| 38 | + /> |
| 39 | + <app-icon icon="carbon:location" |
| 40 | + height="24" |
| 41 | + v-if="item.obj?.type === 'locations'" |
| 42 | + /> |
| 43 | + <app-icon icon="carbon:calendar" |
| 44 | + height="24" |
| 45 | + v-if="item.obj?.type === 'news'" |
| 46 | + /> |
| 47 | + <app-icon icon="carbon:person" |
| 48 | + height="24" |
| 49 | + v-if="item.obj?.type === 'profiles'" |
| 50 | + /> |
| 51 | + <app-icon icon="carbon:wikis" |
| 52 | + height="24" |
| 53 | + v-if="item.obj?.type === 'publications'" |
| 54 | + /> |
| 55 | + <app-icon icon="carbon:video" |
| 56 | + height="24" |
| 57 | + v-if="item.obj?.type === 'videos'" |
| 58 | + /> |
25 | 59 |
|
26 |
| - <span>{{ item.obj?.title }}</span> |
| 60 | + <span>{{ item.obj?.title }}</span> |
| 61 | + </div> |
27 | 62 | <placeholder-params
|
28 | 63 | :id="item.id"
|
29 | 64 | :field="field"
|
@@ -163,11 +198,19 @@ div.placeholdersList > div.header {
|
163 | 198 | }
|
164 | 199 | div.placeholdersList > div.placeholder-item {
|
165 | 200 | display: grid;
|
166 |
| - grid-template-columns: 5% 60% 1fr; |
| 201 | + grid-template-columns: 35% 60% 1fr; |
167 | 202 | text-align: left;
|
168 | 203 | align-items: center;
|
169 | 204 | gap: 8px;
|
| 205 | + padding: 4px 0; |
170 | 206 | margin: 4px 0;
|
171 | 207 | border-top: dotted 1px #ccc;
|
172 | 208 | }
|
| 209 | +div.placeholdersList > div.placeholder-item > div.placeholder-item-name { |
| 210 | + display: flex; |
| 211 | + align-items: start; |
| 212 | + align-self: flex-start; |
| 213 | + gap: 8px; |
| 214 | + margin: 4px 0; |
| 215 | +} |
173 | 216 | </style>
|
0 commit comments