From 7f53375c67e0e99d24b8876d184f265a120a2ce7 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 23 Nov 2017 13:40:19 +0100 Subject: [PATCH 1/4] More padding for question box --- client/talk-plugin-questionbox/QuestionBox.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/talk-plugin-questionbox/QuestionBox.css b/client/talk-plugin-questionbox/QuestionBox.css index cb9902ade..b8df1f228 100644 --- a/client/talk-plugin-questionbox/QuestionBox.css +++ b/client/talk-plugin-questionbox/QuestionBox.css @@ -13,6 +13,8 @@ min-height: 50px; display: flex; border-radius: 3px; + padding-right: 40px; + box-sizing: border-box; } .icon { @@ -67,4 +69,4 @@ .hidden { visibility: hidden; display: none; -} \ No newline at end of file +} From 9359bfc322a986f24b4cc7502bb5999246f0b765 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 23 Nov 2017 20:09:16 +0100 Subject: [PATCH 2/4] Fix styling bug in firefox --- .../Configure/components/StreamSettings.css | 3 ++ .../Configure/components/StreamSettings.js | 34 ++++++++++--------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/client/coral-admin/src/routes/Configure/components/StreamSettings.css b/client/coral-admin/src/routes/Configure/components/StreamSettings.css index 5ddd46bd2..628192de6 100644 --- a/client/coral-admin/src/routes/Configure/components/StreamSettings.css +++ b/client/coral-admin/src/routes/Configure/components/StreamSettings.css @@ -53,3 +53,6 @@ +.autoCloseWrapper { + display: flex; +} diff --git a/client/coral-admin/src/routes/Configure/components/StreamSettings.js b/client/coral-admin/src/routes/Configure/components/StreamSettings.js index 9c05711cb..ffaeed63b 100644 --- a/client/coral-admin/src/routes/Configure/components/StreamSettings.js +++ b/client/coral-admin/src/routes/Configure/components/StreamSettings.js @@ -180,22 +180,24 @@ class StreamSettings extends React.Component { onCheckbox={this.updateAutoClose} title={t('configure.close_after')} > - -
- - - - - +
+ +
+ + + + + +
{/* the above card should be the last one if at all possible because of z-index issues with the selects */} From 37f3c1110420ebfa7685c4a2bd2c7ba7d12e1282 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 24 Nov 2017 12:29:29 +0100 Subject: [PATCH 3/4] Fix radiogroup not working properly in ff --- .../src/routes/Stories/components/Stories.js | 4 ++-- yarn.lock | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/client/coral-admin/src/routes/Stories/components/Stories.js b/client/coral-admin/src/routes/Stories/components/Stories.js index 866defde4..933237ab9 100644 --- a/client/coral-admin/src/routes/Stories/components/Stories.js +++ b/client/coral-admin/src/routes/Stories/components/Stories.js @@ -48,7 +48,7 @@ class Stories extends Component {
{t('streams.filter_streams')}
{t('streams.stream_status')}
{t('streams.sort_by')}
Date: Fri, 24 Nov 2017 12:41:18 +0100 Subject: [PATCH 4/4] Sort by publication_date --- routes/api/assets/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/api/assets/index.js b/routes/api/assets/index.js index 165b2cd99..d7cc86438 100644 --- a/routes/api/assets/index.js +++ b/routes/api/assets/index.js @@ -38,7 +38,7 @@ router.get('/', authorization.needed('ADMIN', 'MODERATOR'), async (req, res, nex const { value = '', - field = 'created_at', + field = 'publication_date', page = 1, asc = 'false', filter = 'all', @@ -46,9 +46,10 @@ router.get('/', authorization.needed('ADMIN', 'MODERATOR'), async (req, res, nex } = req.query; try { + const order = (asc === 'true') ? 1 : -1; const queryOpts = { - sort: {[field]: (asc === 'true') ? 1 : -1}, + sort: {[field]: order, 'created_at': order}, skip: (page - 1) * limit, limit };