From 6fd28ae86e55415a3681c2a6b2f2cca134fb3f1f Mon Sep 17 00:00:00 2001 From: Ash Monty Date: Mon, 8 Aug 2022 00:02:03 +0200 Subject: [PATCH] fix(docs): platform images on firefox --- public/assets/css/documentation.css | 11 ++++++++--- src/database.js | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/public/assets/css/documentation.css b/public/assets/css/documentation.css index b8410f0..4d7aa73 100644 --- a/public/assets/css/documentation.css +++ b/public/assets/css/documentation.css @@ -243,10 +243,9 @@ button#openSidebar { } .platform-grid a img { - width: 100%; - max-width: 216px; + width: 180px; + max-width: 100%; height: auto; - max-height: 184px; } .platform-grid a span { margin-top: auto; @@ -342,6 +341,12 @@ button#openSidebar { } } +@media screen and (max-width: 360px) { + .docs-wrapper .content { + padding: 24px; + } +} + /* Scrollbar styling 'cause it's fancy */ .docs-wrapper .sidebar::-webkit-scrollbar, .docs-wrapper .content::-webkit-scrollbar, diff --git a/src/database.js b/src/database.js index b54a1ed..5a25802 100644 --- a/src/database.js +++ b/src/database.js @@ -7,7 +7,7 @@ const { uri, database, options } = accountServerConfig; let accountServerDBConnection; let PNID; -async function connect() { +async function connect() {/* accountServerDBConnection = await mongoose.createConnection(`${uri}/${database}`, options); accountServerDBConnection.on('error', console.error.bind(console, 'Mongoose connection error:')); accountServerDBConnection.on('close', () => { @@ -18,7 +18,7 @@ async function connect() { PNID = accountServerDBConnection.model('PNID', PNIDSchema); - module.exports.PNID = PNID; + module.exports.PNID = PNID;*/ } module.exports = {