diff --git a/src/_locales/cmn-CN.yml b/src/_locales/cmn-CN.yml index 2fbb163a..1aa5f202 100644 --- a/src/_locales/cmn-CN.yml +++ b/src/_locales/cmn-CN.yml @@ -68,6 +68,7 @@ settings: chk_box: show: 显示 hidden: 隐藏 + enable_grid_layout_switcher: 启用页面网格布局切换器 enable_horizontal_scrolling: 启用横向滚动 enable_horizontal_scrolling_desc: 启用后,鼠标滚动时将直接滚动横向滚动列表 enable_video_preview: 启用视频预览功能 diff --git a/src/_locales/cmn-TW.yml b/src/_locales/cmn-TW.yml index e407b382..c968f22b 100644 --- a/src/_locales/cmn-TW.yml +++ b/src/_locales/cmn-TW.yml @@ -68,6 +68,7 @@ settings: chk_box: show: 顯示 hidden: 隱藏 + enable_grid_layout_switcher: 啟用版面格線佈局切換器 enable_horizontal_scrolling: 啟用橫向捲動 enable_horizontal_scrolling_desc: 啟用後,滑鼠捲動時將直接捲動橫向捲軸列表 enable_video_preview: 啟用影片預覽功能 diff --git a/src/_locales/en.yml b/src/_locales/en.yml index 83a4214b..1501068c 100644 --- a/src/_locales/en.yml +++ b/src/_locales/en.yml @@ -68,6 +68,7 @@ settings: chk_box: show: Show hidden: Hidden + enable_grid_layout_switcher: Enable grid layout switcher enable_horizontal_scrolling: Enable horizontal scrolling enable_horizontal_scrolling_desc: After enabling, mouse scrolling will directly scroll the horizontal scroll list enable_video_preview: Enable video preview feature diff --git a/src/_locales/jyut.yml b/src/_locales/jyut.yml index 5f10753c..8286da06 100644 --- a/src/_locales/jyut.yml +++ b/src/_locales/jyut.yml @@ -68,6 +68,7 @@ settings: chk_box: show: 擺出嚟 hidden: 收埋 + enable_grid_layout_switcher: 使用版面格線佈局切換器 enable_horizontal_scrolling: 使用橫向捲動 enable_horizontal_scrolling_desc: 用咗之後,轆緊滑鼠就可以直接打橫掃水平捲軸列表 enable_video_preview: 使用影片預覽功能 diff --git a/src/components/Settings/components/General.vue b/src/components/Settings/components/General.vue index 5dc13238..b975236e 100644 --- a/src/components/Settings/components/General.vue +++ b/src/components/Settings/components/General.vue @@ -110,6 +110,10 @@ function handleToggleDockItem(dockItem: any) { /> + + + + diff --git a/src/contentScripts/views/Home/Home.vue b/src/contentScripts/views/Home/Home.vue index 16c0f608..d13e6f02 100644 --- a/src/contentScripts/views/Home/Home.vue +++ b/src/contentScripts/views/Home/Home.vue @@ -216,6 +216,7 @@ function toggleTabContentLoading(loading: boolean) {
({ language: '', + enableGridLayoutSwitcher: true, enableHorizontalScrolling: false, openLinkInCurrentTab: false, enableVideoPreview: true,