模块:收纳表:修订间差异

跳到导航 跳到搜索
添加95字节 、​ 2022年6月11日 (星期六)
修复一个页面宽度过小时的显示bug
(Fezz240移动页面模块:周年庆感言模块:收纳表,不留重定向:用途比原先预期广)
(修复一个页面宽度过小时的显示bug)
第70行: 第70行:
     if args['textDisplay'] == 'left' or args['textDisplay'] == 'right' then
     if args['textDisplay'] == 'left' or args['textDisplay'] == 'right' then
         tabs_contents
         tabs_contents
             :css('display', 'inline-grid')
             :css('display', 'inline')
             :css('overflow-y', 'auto')
             :css('overflow-y', 'auto')
            :css('margin', '2.5%')
            :css('margin-left', '0')
             :css('width', '60%')
             :css('width', '60%')
         args['textHeight'] = '400px'
         args['textHeight'] = '400px'
第77行: 第79行:
     if args['textHeight'] ~= nil then
     if args['textHeight'] ~= nil then
         tabs_contents
         tabs_contents
            :css('height', args['textHeight'])
             :css('overflow-y', 'auto')
             :css('overflow-y', 'auto')
     end
     end
第88行: 第91行:
         tabs_contents:tag('div')
         tabs_contents:tag('div')
             :addClass('tab-c')
             :addClass('tab-c')
            :css('height', args['textHeight'])
             :wikitext(args['content' .. tabIndex])
             :wikitext(args['content' .. tabIndex])
     end
     end
第120行: 第122行:
     local mainDiv = mw.html.create('div')
     local mainDiv = mw.html.create('div')
         :addClass('tabs-container')
         :addClass('tabs-container')
   
        :css('display', 'flex')
 
     if args['textDisplay'] == 'top' or args['textDisplay'] == 'left' then
     if args['textDisplay'] == 'top' or args['textDisplay'] == 'left' then
         mainDiv:node(renderContent(tabIndices, args))
         mainDiv:node(renderContent(tabIndices, args))

导航菜单