with this the title is now completely visible when the column is
expanded, even if it's originally too narrow.
Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
[TL: fix eslint warning for missing space after comma ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
.pmx-tag-tooltip .proxmox-tags-full > span {
margin: 0px;
}
.pmx-tag-tooltip .proxmox-tags-full > span {
margin: 0px;
}
+
+.pmx-column-wrapped > div {
+ white-space: pre-wrap;
+}
stateId: 'ceph-status-warnings',
viewConfig: {
enableTextSelection: true,
stateId: 'ceph-status-warnings',
viewConfig: {
enableTextSelection: true,
+ listeners: {
+ collapsebody: function(rowNode, record) {
+ record.set('expanded', false);
+ record.commit();
+ },
+ expandbody: function(rowNode, record) {
+ record.set('expanded', true);
+ record.commit();
+ },
+ },
},
// we load the store manually, to show an emptyText specify an empty intermediate store
store: {
},
// we load the store manually, to show an emptyText specify an empty intermediate store
store: {
{
dataIndex: 'summary',
header: gettext('Summary'),
{
dataIndex: 'summary',
header: gettext('Summary'),
+ renderer: function(value, metaData, record, rI, cI, store, view) {
+ if (record.get('expanded')) {
+ metaData.tdCls = 'pmx-column-wrapped';
+ }
+ return value;
+ },