(五)activiti-modeler 编辑器初步优化

最终效果:

1..首先去掉顶部的logo,没什么用,还占用空间。

修改modeler.html文件,添加样式:

css 复制代码
<style type="text/css">
#main-header{
	display: none;
}
#main{
	padding: 0px;
}
</style>

2.左边组件选择区域太宽了,一般用不到那么宽。

修改editor-app/editor.html文件。添加样式:

同样的,下面改为 col-lg-10 总共加起来12格。

3.中间下方的属性编辑面板希望放到右侧去。

4.右侧属性编辑将一行2个改为一行1个。

css 复制代码
html, body{
	margin: 0px;
	padding: 0px;
}
#main-header{
	display: none;
}
#main{
	margin: 0px;
	padding: 0px;
}
.selected-item-section clearfix{
	float: left;
	width: 100%;
}

.selected-item-section .property-row{
	float: none;
	width: 100%;
	display: flex;
	height: 29px;
}
.selected-item-section .selected-item-body{
	width: 100%;
	height: 100%;
}
.selected-item-body > div {
	overflow: auto;
	margin: 0px; 
}
.property-row span.title {
    font-size: 13px;
    font-weight: bold;
    width: 90px;
    text-align: right;
}
.property-row span.value {
	flex: 1;
}
div.propertySection { 
    height: 100%; 
    background-color: #e8edf1; 
} 

5.中间流程设计器去掉滚动条。

发现设计器的高度是写死的1050px;

在源码中查找1050:

此时还有设计器外面的div的高度计算要修改。

总结修改的文件有:

  • modeler.html
  • editor.html
  • app.js
  • oryx.debug.js
相关推荐
bitter️4 小时前
vue2+ueditor集成秀米编辑器
编辑器
daxiongdedlam5 小时前
免费的文章生成器有哪些?盘点5款为你自动生成文章
人工智能·编辑器·ai写作·媒体
Days205012 小时前
ueditorplus百度编辑器集成秀米及135编辑器
编辑器
BY—-组态13 小时前
国内web组态推荐
前端·物联网·数学建模·编辑器·html·工业互联网
程序者王大川15 小时前
【开发工具】探索IntelliJ IDEA插件——JSON Parser,让JSON处理变得轻松高效
java·编辑器·json·intellij-idea·插件·json格式化
Geeker5516 小时前
需要恢复 Android 手机的存储卡?6 个Android 数据恢复应用程序(可用于手机内存 + MicroSD 卡)
android·macos·ios·智能手机·pdf·编辑器·iphone
2401_8514793417 小时前
【Linux】软件包管理器yum和编辑器vim(部分动图演示)_软件安装管理器配置编辑器
linux·编辑器·vim
₯㎕星空&繁华1 天前
Linux编辑器-vim使用
linux·编辑器·vim
_.Switch1 天前
深入解析 Node.js:基础知识、环境搭建与核心模块详解
服务器·前端·数据库·node.js·编辑器·vim
大大。2 天前
VSCode中多行文本的快速前后缩进
ide·vscode·编辑器