eallion / onenav-baisu-mod

https://github.com/helloxz/onenav 个人导航 Baisu 主题修改版 Mod
https://s.eallion.com
Apache License 2.0
4 stars 1 forks source link

要是能有侧边栏就好了 #2

Open woshichenghaibo opened 4 months ago

woshichenghaibo commented 4 months ago

否则如果书签很多的话,需要往下拉很久才能定位

eallion commented 4 months ago

左侧好像有侧边栏吧。

woshichenghaibo commented 4 months ago

你试试,我用的你的主题。 nav.guao.de


发件人: Charles Chin @.> 发送时间: 2024年5月29日 21:38 收件人: eallion/onenav-baisu-mod @.> 抄送: woshichenghaibo @.>; Author @.> 主题: Re: [eallion/onenav-baisu-mod] 要是能有侧边栏就好了 (Issue #2)

左侧好像有侧边栏吧。

― Reply to this email directly, view it on GitHubhttps://github.com/eallion/onenav-baisu-mod/issues/2#issuecomment-2137440141, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGWDINYK2KNYECEU34PZBTZEXK4ZAVCNFSM6AAAAABIO5LIJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZXGQ2DAMJUGE. You are receiving this because you authored the thread.Message ID: @.***>

eallion commented 4 months ago

你试试,我用的你的主题。 nav.guao.de

对的,左侧有侧边栏的。如果要细分可以用子分类。

woshichenghaibo commented 4 months ago

你打开看到了侧边栏?不会吧? 看我附件


发件人: Charles Chin @.> 发送时间: 2024年5月29日 22:15 收件人: eallion/onenav-baisu-mod @.> 抄送: woshichenghaibo @.>; Author @.> 主题: Re: [eallion/onenav-baisu-mod] 要是能有侧边栏就好了 (Issue #2)

你试试,我用的你的主题。 nav.guao.de

对的,左侧有侧边栏的。如果要细分可以用子分类。

― Reply to this email directly, view it on GitHubhttps://github.com/eallion/onenav-baisu-mod/issues/2#issuecomment-2137525050, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGWDIPHY3J6ERVV6KNLKL3ZEXPGPAVCNFSM6AAAAABIO5LIJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZXGUZDKMBVGA. You are receiving this because you authored the thread.Message ID: @.***>

woshichenghaibo commented 4 months ago

我用one.nav默认的主题是可以看得到左上角侧边栏的,用你的看不到,但是你说你能看到,那就奇怪了,我刚才把我的via浏览器插件都禁用了也不行


发件人: 韩 升 @.> 发送时间: 2024年5月29日 22:20 收件人: Charles Chin @.>; eallion/onenav-baisu-mod @.>; eallion/onenav-baisu-mod @.> 抄送: Author @.***> 主题: 答复: [eallion/onenav-baisu-mod] 要是能有侧边栏就好了 (Issue #2)

你打开看到了侧边栏?不会吧? 看我附件


发件人: Charles Chin @.> 发送时间: 2024年5月29日 22:15 收件人: eallion/onenav-baisu-mod @.> 抄送: woshichenghaibo @.>; Author @.> 主题: Re: [eallion/onenav-baisu-mod] 要是能有侧边栏就好了 (Issue #2)

你试试,我用的你的主题。 nav.guao.de

对的,左侧有侧边栏的。如果要细分可以用子分类。

― Reply to this email directly, view it on GitHubhttps://github.com/eallion/onenav-baisu-mod/issues/2#issuecomment-2137525050, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGWDIPHY3J6ERVV6KNLKL3ZEXPGPAVCNFSM6AAAAABIO5LIJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZXGUZDKMBVGA. You are receiving this because you authored the thread.Message ID: @.***>

eallion commented 4 months ago

是手机吗?手机端不行。

woshichenghaibo commented 4 months ago

是WAP页面,能不能把WAP页面加上去,因为手机要往下拉很多书签的话,很麻烦


发件人: Charles Chin @.> 发送时间: 2024年5月29日 22:51 收件人: eallion/onenav-baisu-mod @.> 抄送: woshichenghaibo @.>; Author @.> 主题: Re: [eallion/onenav-baisu-mod] 要是能有侧边栏就好了 (Issue #2)

是手机吗?手机端不行。

― Reply to this email directly, view it on GitHubhttps://github.com/eallion/onenav-baisu-mod/issues/2#issuecomment-2137611962, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGWDIL7VKWMUVC4KZP2ARTZEXTQLAVCNFSM6AAAAABIO5LIJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZXGYYTCOJWGI. You are receiving this because you authored the thread.Message ID: @.***>

woshichenghaibo commented 4 months ago

而且WAP页面还没有回到顶部那个小按钮


发件人: 韩 升 @.> 发送时间: 2024年5月30日 7:07 收件人: Charles Chin @.>; eallion/onenav-baisu-mod @.>; eallion/onenav-baisu-mod @.> 抄送: Author @.***> 主题: 答复: [eallion/onenav-baisu-mod] 要是能有侧边栏就好了 (Issue #2)

是WAP页面,能不能把WAP页面加上去,因为手机要往下拉很多书签的话,很麻烦


发件人: Charles Chin @.> 发送时间: 2024年5月29日 22:51 收件人: eallion/onenav-baisu-mod @.> 抄送: woshichenghaibo @.>; Author @.> 主题: Re: [eallion/onenav-baisu-mod] 要是能有侧边栏就好了 (Issue #2)

是手机吗?手机端不行。

― Reply to this email directly, view it on GitHubhttps://github.com/eallion/onenav-baisu-mod/issues/2#issuecomment-2137611962, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGWDIL7VKWMUVC4KZP2ARTZEXTQLAVCNFSM6AAAAABIO5LIJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZXGYYTCOJWGI. You are receiving this because you authored the thread.Message ID: @.***>

woshichenghaibo commented 4 months ago

是手机吗?手机端不行。

pc页面也没有啊, 2024-5-31 19-13-5

eallion commented 4 months ago

页宽小余 1366 就隐藏了。在这里根据需要可以自己调整。

https://github.com/eallion/onenav-baisu-mod/blob/main/css/style.css#L1208-L1211

woshichenghaibo commented 4 months ago

页宽小余 1366 就隐藏了。在这里根据需要可以自己调整。

https://github.com/eallion/onenav-baisu-mod/blob/main/css/style.css#L1208-L1211

我现在回到原作者的onenav-baisu,baisu主题的js/common.js里面有句话点击菜单键隐藏/显示侧边栏,代码如下:

$('.wap-menu').click(function() { $(".navlist-main").toggle(); });

我在这段话前面加上一段话,试图能够点击空白处自动关闭navlist-main,但是无效,代码如下:

// 监听document的点击事件 $(document).click(function(event) { // 检查点击的元素是否是.navlist-main或者它的子元素 if ($(event.target).closest('.navlist-main').length === 0) { // 如果点击的是.navlist-main以外的区域 // 检查.navlist-main是否是可见的 if ($(' .navlist-main').is(':visible')) { // 如果.navlist-main是可见的,则隐藏它 $(' .navlist-main').hide(); } } });

请教哪里错了?