如何在 AEM 6.3 的资产侧面板中将卡片视图更改为列表视图
How to change card view to list view in Assets sidepanel in AEM 6.3
我想将资产侧面板从卡片视图更改为列表视图。我的资产全名不可见。我们如何将其更改为列表视图?
如 Iscmaro 所述,在创作页面时没有资产列表视图选项。因为您想查看资产的全名,所以如果您可以将鼠标悬停在图像上,您会看到显示的名称,如下面的屏幕截图所示。
不支持或不可能通过 OOTB API 将其更改为 "List View"。资产卡显示为Coral.Masonry
You could probably change it, but it would require quite a few lines of CSS and a Js update to change the columnWidth
on the Coral.Masonry element. Which would be a temporary hack.
如果您担心显示完整的资产名称,您可以使用 CSS:
- 使用
categories="[cq.authoring.editor.hook]"
创建客户端库
- 添加以下内容CSS
.sidepanel-tab-assets .editor-Card-asset coral-card-title {
white-space: initial !important;
}
资产卡现在应该显示全名。
我想将资产侧面板从卡片视图更改为列表视图。我的资产全名不可见。我们如何将其更改为列表视图?
如 Iscmaro 所述,在创作页面时没有资产列表视图选项。因为您想查看资产的全名,所以如果您可以将鼠标悬停在图像上,您会看到显示的名称,如下面的屏幕截图所示。
不支持或不可能通过 OOTB API 将其更改为 "List View"。资产卡显示为Coral.Masonry
You could probably change it, but it would require quite a few lines of CSS and a Js update to change the
columnWidth
on the Coral.Masonry element. Which would be a temporary hack.
如果您担心显示完整的资产名称,您可以使用 CSS:
- 使用
categories="[cq.authoring.editor.hook]"
创建客户端库
- 添加以下内容CSS
.sidepanel-tab-assets .editor-Card-asset coral-card-title {
white-space: initial !important;
}
资产卡现在应该显示全名。