Skip to content

飞书文档紧凑样式 by yifoo

Screenshot of 飞书文档紧凑样式

Details

Authoryifoo

LicenseNo License

Categoryfeishu.cn

Created

Updated

Code size3.5 kB

Code checksum518c55fa

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

紧凑展示飞书文档,视野显示更多。
PS:有个小bug,当侧边栏文档比较多时,滑动到下面会出现抖动现象,这是因为飞书官方的侧边栏排版是js动态生成的,暂时无法解决,介意的请勿使用

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         飞书文档紧凑样式
@version      202502241459
@namespace    https://userstyles.world/user/yifoo
@description  紧凑展示飞书文档,视野显示更多.有个小bug:当侧边栏文档比较多时,滑动到下面会出现抖动现象,这是因为飞书官方的侧边栏排版是js动态生成的,暂时无法解决,介意的请勿使用
@author       yifoo
@license      No License
==/UserStyle== */
@-moz-document regexp("https:\\/\\/.+\\.feishu\\.cn\\/.*") {
	/*侧边栏头部三个元素*/
	.scroll-right-padding {/*飞书云文档侧边主页、云盘、知识库横向显示*/
		flex-direction: row;
		-webkit-box-pack: start;
		justify-content: space-evenly;
		align-items: center;
		padding: 0px 2px 2px;
	}
	.wiki-search-entry-item {
		height: 25px;
	}
	.workspace-scroll-area > .scroll-right-padding > div {
		padding: 0 4px;
		padding-left: 10px;
	}

	.bitable-new-table-item .bitable-layout-column {
		height: 22px !important;
	}
	/*搜搜弹窗*/
	.wiki-search-node-dialog {
		width: 700px !important;
	}
	.search-item-link {
		padding: 4px 8px 4px 12px;
	}
	.search-result-item {
		align-items: baseline;
	}
	.search-result-item .search-item-custom-icon-wrapper .universe-icon svg {
		vertical-align: -0.5em;
	}
	.search-result-item-info .ellipsis {
		padding: 3px 0;
	}
	.search-result-item .search-result-item-extra {
		margin-top: 0;
	}


	.bitable-new-block-creation-menu-container .block-creation-menu .block-creation-menu-item {
		height: 25px;
	}
	.bitable-new-table-tab__item {
		height: 25px;
	}
	.bitable-container > .ind-bitable-table-view-container-new-layout {
		padding: 0 4px;
	}
	.bitable-view-tab-bar {
		padding-top: 4px;
	}
	.navigation-bar {
		line-height: 50px;
		height: 50px;
	}
	.note-title {
		height: 50px;
	}
	.note-title__history.g-cp {
		display: inline-block;
		line-height: 25px;
		height: 25px;
	}
	.base-block_creation_menu_add_icon {
		top: 5px;
	}
	.bitable-view-menu-item,
	.bitable-view-menu-item__content__icon,
	.bitable-new-table-item-view-item .bitable-view-menu-item__content {
		height: 20px;
	}
	.bitable-view-menu-item__content__text {
		line-height: 20px;
	}
	.bitable-new-block-creation-menu-container .block-creation-menu .block-creation-menu-item .add-icon {
		top: 4px;
	}
	.wiki-dropdown-nav-menu-wrapper {
		height: 36px;
	}

	.workspace-tree-view-node {
		margin-left: -5px;
	}
	.workspace-tree-view-node > div {
		padding-left: 2px;
	}
	.workspace-tree-view-node-wrapper,
	.workspace-tree-node {
		position: static !important;
		height: 26px;
		line-height: 26px;
		transform: none !important;
	}
	.workspace-tree-view-node,
	.workspace-tree-view-node-content {
		height: 26px;
		line-height: 26px;
	}

	#workspace-pin-docs-tree {
		height: 100% !important;
	}

	.wiki-page-tree .wiki-tree-wrap {
		overflow-x: auto;
	}
	.wiki-page-tree .wiki-tree-wrap .list-filler {
		min-width: 600px !important;
	}
	.droppable-workspace-root-node-wrapper {	/*文档大类间距*/
		padding: 0px;
	}
	.ellipsis {
		font-size: 14px;
		padding: 5px 0;
	}
	.workspace-tree-view-node-icon .gpf-biz-suite-custom-icon__icon-wrapper > .gpf-biz-suite-custom-icon__icon-image {
		width: 15px;
		height: 15px;
	}
	#workspace-personal-tree,
	#workspace-pin-docs-tree,
	#workspace-pin-wiki-space-tree {
		padding: 0 5px;
	}
	.workspace-tree-view-node-expand-arrow {
		width: 14px;
	}
	.suite-clear {
		display: none !important;
	}
	.workspace-tree {
		width: 100%;
		height: 100%;
	}

	.sidebar-bottom-item {
		height: 20px;
	}
}

Reviews

No reviews yet.