(五)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
相关推荐
Aphelios38010 小时前
Linux 下 VIM 编辑器学习记录:从基础到进阶(上)
java·linux·编辑器·vim
workflower12 小时前
实例研究:设计一个文档编辑器(24)- 完
java·开发语言·设计模式·编辑器·软件工程·需求分析·软件需求
咩咩大主教13 小时前
VSCode运行Go程序报错:Unable to process `evaluate`: debuggee is running
开发语言·ide·vscode·golang·编辑器
温酒往事·17 小时前
无缝对接[系列2]:在VSCode中继续接入本地DeepSeek的完整指南
ide·vscode·编辑器
徐小夕@趣谈前端17 小时前
tmagic-editor,腾讯开源的基于 Vue3 的页面可视化编辑器
编辑器
徐小夕@趣谈前端18 小时前
支持列表拖拽嵌套,AI流式输出的多模态文档编辑器flowmix/docx: 全面升级
人工智能·编辑器
下雪了 ~18 小时前
使用sublime_text中,TAB键无效怎么解决???
编辑器·sublime text
want_water_fish18 小时前
2步破解官方sublime4最新版本 4192
编辑器·sublime text
m0_748241121 天前
Node.js使用教程
node.js·编辑器·vim