Compare commits

...

14 commits

Author SHA1 Message Date
DianaXWiki
4d1d4852c3
Merge branch 'staging' into 1099-performance-table-not-responsive-for-mobile 2024-07-30 13:34:39 +03:00
DianaXWiki
7daebfe93c Merge branch 'staging' into 1099-performance-table-not-responsive-for-mobile 2024-07-30 13:33:01 +03:00
DianaXWiki
61447629af Remove eslint change #1099 2024-07-30 13:32:53 +03:00
David Benque
ca8e58b34a
Merge branch 'main' into staging 2024-07-25 15:24:01 +01:00
yflory
5b08caede2 Merge branch '2024.6.1' into staging 2024-07-24 15:26:11 +02:00
DianaXWiki
7d14f80fdb Make admin tables responsive #1099 2024-07-23 15:14:12 +03:00
David Benque
11cf84a985 Update linter rules
Prevent line break errors on Windows
2024-07-18 15:42:56 +01:00
DianaXWiki
ffebbc6e80 More specific div selector #1099 2024-07-18 15:20:20 +03:00
DianaXWiki
a1b617f0ca Wrap table inside a div #1099 2024-07-18 15:18:56 +03:00
DianaXWiki
c9d5f2c236 Add horizontal scrollbar to table #1099 2024-07-17 17:30:28 +03:00
DianaXWiki
1f3b664bfe Refactor code #1099 2024-07-17 15:26:10 +03:00
DianaXWiki
482e327454 Adjust general table styling to flex and make the performance one responsive #1099 2024-07-17 12:34:41 +03:00
DianaXWiki
81f70c6a67 Add border to table 2024-07-11 13:08:50 +03:00
DianaXWiki
e43b16a6ee Add responsive styling to performance table 2024-07-09 18:24:17 +03:00
3 changed files with 48 additions and 5 deletions

View file

@ -35,7 +35,7 @@ module.exports = {
4
],
'linebreak-style': [
'error',
'off', // git handles linebreak conversion for us
'unix'
],
'quotes': [

View file

@ -28,6 +28,37 @@
max-height: 250px;
}
}
#cp-sidebarlayout-container {
#cp-sidebarlayout-rightside {
.cp-sidebarlayout-element[data-item] {
div#cp-admin-table-container {
overflow-x: auto;
.cp-sidebar-table#cp-admin-table {
tr {
display: flex;
}
th, td {
flex: 1;
word-wrap: break-word;
white-space: normal;
min-width: 13rem;
margin-right: 0px;
}
@media (max-width: @browser_media-not-small) {
width: 100%;
tr {
width: 100%;
}
th, td {
margin-right: 0;
min-width: 7rem;
}
}
}
}
}
}
}
.cp-admin-color-current {
width: 20px;
height: 20px;

View file

@ -1101,6 +1101,9 @@ define([
""
];
var list = blocks.table(header, []);
list.setAttribute('id', 'cp-admin-table');
let div = blocks.block([list]);
div.setAttribute('id', 'cp-admin-table-container');
var nav = blocks.nav([button, refreshButton]);
var form = blocks.form([
@ -1201,7 +1204,7 @@ define([
});
});
cb([form, list]);
cb([form, div]);
});
var getBlockId = (val) => {
@ -1413,6 +1416,9 @@ define([
""
];
var list = blocks.table(header, []);
list.setAttribute('id', 'cp-admin-table');
let div = blocks.block([list]);
div.setAttribute('id', 'cp-admin-table-container');
var nav = blocks.nav([button, refreshButton]);
@ -1581,7 +1587,7 @@ define([
});
});
cb([form, list]);
cb([form, div]);
});
// Msg.admin_defaultlimitHint, .admin_defaultlimitTitle
@ -1741,6 +1747,9 @@ define([
Messages.admin_note
];
var table = blocks.table(header, []);
table.setAttribute('id', 'cp-admin-table');
let div = blocks.block([table]);
div.setAttribute('id', 'cp-admin-table-container');
let $table = $(table).hide();
APP.refreshLimits = function () {
@ -1798,7 +1807,7 @@ define([
});
};
APP.refreshLimits();
cb(table);
cb(div);
});
// Msg.admin_accountMetadataHint.admin_accountMetadataTitle
@ -3594,6 +3603,9 @@ define([
];
var table = blocks.table(header, []);
table.setAttribute('id', 'cp-admin-table');
let div = blocks.block([table]);
div.setAttribute('id', 'cp-admin-table-container');
const onRefresh = function () {
sFrameChan.query('Q_ADMIN_RPC', {
@ -3626,7 +3638,7 @@ define([
onRefresh();
onRefreshPerformance.reg(onRefresh);
cb(table);
cb(div);
});