From 74b49adae52e583ba67f770c5bf0e7350758d9c5 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 15 Sep 2020 11:07:03 +0200 Subject: [PATCH] Fix flexbox issue --- www/common/common-ui-elements.js | 2 +- www/common/inner/share.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 7f9e94423..dc5d054f5 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -418,7 +418,7 @@ define([ var localStore = window.cryptpadStore; localStore.get('hide-alert-teamInvite', function (val) { if (val === '1') { return; } - $(linkWarning).show(); + $(linkWarning).css('display', 'flex'); $(dismissButton).on('click', function () { localStore.put('hide-alert-teamInvite', '1'); diff --git a/www/common/inner/share.js b/www/common/inner/share.js index 457befc22..34b258109 100644 --- a/www/common/inner/share.js +++ b/www/common/inner/share.js @@ -341,7 +341,7 @@ define([ localStore.get('hide-alert-shareLinkWarning', function (val) { if (val === '1') { return; } - $(shareLinkWarning).show(); + $(shareLinkWarning).css('display', 'flex'); $(dismissButton).on('click', function () { localStore.put('hide-alert-shareLinkWarning', '1'); @@ -737,7 +737,7 @@ define([ localStore.get('hide-alert-shareLinkWarning', function (val) { if (val === '1') { return; } - $(shareLinkWarning).show(); + $(shareLinkWarning).css('display', 'flex'); $(dismissButton).on('click', function () { localStore.put('hide-alert-shareLinkWarning', '1');