跳至內容
選單
此問題已被標幟
7009 瀏覽次數

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
8169
1
1月 25
2041
0
1月 25
1335
1
9月 22
1322
0
8月 22
2837