跳至内容
菜单
此问题已终结
7003 查看

Hi everyone,

Maybe it is a simple question, but can't find anything on the web.

How can I change the dimensions of Kanban cards?
I want to make them bigger.

by adding

 style="width: 1500px; height: 700px;"

I managed to change the height of the kanban card in following code, but the width is not changing :


<kanban class="oe_background_grey o_kanban_dashboard o_stock_kanban" create="0">
<field name="color"/>
<field name="name"/>
<field name="image_small"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="#{kanban_color(record.color.raw_value)}" style="width: 1500px; height: 700px;">
<div class="o_kanban_card_header">
<div class="o_kanban_card_header_title">
<div class="o_primary">
<field name="name"/>
</div>
</div>
</div>
<div class="o_kanban_image" >
<t t-if="record.image_small.raw_value">
<img t-att-src="kanban_image('res.partner', 'image_small', record.id.value)"/>
</t>
</div>
</div>
</t>
</templates>
</kanban>


Any idea what is the trick? Should I modify/add some css somewhere??

Cheers

AD



形象
丢弃

CSSs should be there addons\web_kanban\static\src\less

Try to change 'flex' parameter.

相关帖文 回复 查看 活动
1
1月 17
8146
1
1月 25
2033
0
1月 25
1330
1
9月 22
1322
0
8月 22
2830