From e45a185c40b5e7ea47f17501a7b458926f79aa0c Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Fri, 19 Jun 2020 15:29:14 +0530 Subject: [PATCH] :art: Updated flex UI --- assets/css/styles.scss | 4 ++ components/layout/sidenav.vue | 121 ++++------------------------------ pages/index.vue | 8 ++- 3 files changed, 24 insertions(+), 109 deletions(-) diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 204583b6b..fe6df36ea 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -149,6 +149,8 @@ footer { nav.primary-nav { display: flex; flex-flow: column nowrap; + align-items: center; + justify-content: center; svg { fill: var(--fg-light-color); @@ -192,6 +194,8 @@ nav.primary-nav { nav.secondary-nav { display: flex; flex-flow: column nowrap; + align-items: center; + justify-content: center; border-top: 2px dashed var(--brd-color); margin-top: 4px; diff --git a/components/layout/sidenav.vue b/components/layout/sidenav.vue index 9752793c9..596e83e7f 100644 --- a/components/layout/sidenav.vue +++ b/components/layout/sidenav.vue @@ -26,113 +26,20 @@ v-tooltip.right="$t('graphql')" :aria-label="$t('graphql')" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + notes + photo_filter @@ -2395,6 +2396,9 @@ export default { try { const jsonObj = JSON.parse(this.rawParams) this.rawParams = JSON.stringify(jsonObj, null, 2) + let oldIcon = this.$refs.prettifyRequest.innerHTML + this.$refs.prettifyRequest.innerHTML = this.doneButton + setTimeout(() => (this.$refs.prettifyRequest.innerHTML = oldIcon), 1000) } catch (e) { this.$toast.error(`${this.$t("json_prettify_invalid_body")}`, { icon: "error",