请注意,本站并不支持低于IE8的浏览器,为了获得最佳效果,请下载最新的浏览器,推荐下载 Chrome浏览器
欢迎光临。交流群:166852192

Orchard提示:媒体库文件名覆盖不显示


Have you or a client noticed that sometimes you don't see any filenames associated with media library items in Orchard CMS? 
您或客户是否注意到有时您在Orchard CMS中看不到与媒体库项目相关联的任何文件名?

You will notice the names appearing and disappearing based on the device you are using's screen width. I was moving from my desktop to my laptop and noticed the change. Screen widths below 1419px have a specific style on the filename overlay markup to have it's css display property set to none. This took me a little longer to realize because I saw it working for some people and not for others with the same browser, which made me not think to dig a little deeper right away.
Either way, I addressed it for my client by adding an override in the Themes\TheAdmin\Styles\site.css that basically forces it for smaller screen widths.
您会注意到这些名称根据您使用的屏幕宽度的设备而出现和消失。 我从我的桌面移动到我的笔记本电脑,注意到了变化。 屏幕宽度低于1419px时,在文件名覆盖标记上有一个特定的样式,使其css display属性设置为none。 这花了我一点时间来实现,因为我看到它为某些人工作,而不是为同一个浏览器的其他人,这使我不想再挖一点更深。


无论哪种方式,我通过在Themes \ TheAdmin \ Styles \ site.css中添加一个覆盖,基本上强制它为更小的屏幕宽度为我的客户端。

/* Override Media Library for Small Screens
/*覆盖小屏幕的媒体库
***************************************************************/
@media (max-width: 1419px) {
    .media-library-main-list-overlay {
        display: block !important;
        top: auto !important;
    }
}
@media (max-width: 1190px) {
    .media-library-main-list-overlay {
        display: block !important;
        top: auto !important;
    }
}
Give it a try!
About the Author:
Arra Derderian serves as the President and as a Lead Technical Architect for Cloud Construct. As a founder at Cloud Construct, Arra is involved in all levels of the business from new project engagements, project planning, and development.
He also serves as the founder of the Boston Orchard CMS User Group and is a member of the Windows Azure Insiders group.
Arra graduated from Northeastern University School with a Bachelor of Science degree in Computer Science.
试一试!


关于作者:


Arra Derderian担任总裁和云构造领导技术架构师。 作为Cloud Construct的创始人,Arra参与了来自新项目合作,项目规划和开发的所有级别的业务。


他也是波士顿Orchard CMS用户组的创始人,并且是Windows Azure Insiders组的成员。


Arra毕业于东北大学学院,获得计算机科学理学学士学位。



作者原创内容不容易,如果觉得内容不错,请点击右侧“打赏”,赏俩给作者花花,也算是对作者付出的肯定,也可以鼓励作者原创更多更好内容。
更多详情欢迎到QQ群 166852192 交流。