Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
7045 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 17
8279
1
ม.ค. 25
2094
0
ม.ค. 25
1357
1
ก.ย. 22
1322
0
ส.ค. 22
2866