EmbyCrackedClient/web/modules/tabbedview/viewhelper.js
2025-06-25 11:46:04 +08:00

1 line
No EOL
748 B
JavaScript

function convertTemplateToHorizontal(html){return html=(html=(html=(html=(html=(html=(html=(html=(html=html.replace('data-horizontal="false"','data-horizontal="true"')).replace('data-forcescrollbar="true"','data-forcescrollbar="false"')).replace('data-bindheader="true"','data-bindheader="false"')).replace(" padded-bottom-page","")).replace(" vertical-wrap","")).replace("scrollSlider ","scrollSlider flex flex-direction-column ")).replace("itemsContainer ","itemsContainer flex-grow ")).replace('is="emby-itemscontainer"','is="emby-itemscontainer" style="margin-top:1em;"')).replace(' data-virtualscrolllayout="vertical-grid"',' data-virtualscrolllayout="horizontal-grid"')}export default{convertTemplateToHorizontal:convertTemplateToHorizontal};