From 72390d61768ffb8553d6a3bdda6aa4291c190a7b Mon Sep 17 00:00:00 2001 From: reglim Date: Tue, 4 Oct 2022 07:25:53 +0200 Subject: [PATCH 1/2] Feat: Add hideui queryparameter to hide controls The default value is false, and not shown in the url. fixes: #123 --- web/src/pages/Docs.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/src/pages/Docs.vue b/web/src/pages/Docs.vue index dbf0f6d1a..f35e4babf 100644 --- a/web/src/pages/Docs.vue +++ b/web/src/pages/Docs.vue @@ -1,7 +1,7 @@ @@ -133,6 +138,10 @@ export default { this.$router.replace( `/${this.$route.params.project}/${this.selectedVersion}/${docPath || ''}${hideUiParam}` ).catch(() => {}) // NavigationDuplicate + }, + onHideControlsClick(){ + this.showControls = false; + this.load() } } } @@ -154,14 +163,10 @@ body, .version-select { width: 200px; - float: right; background: white; - border-radius: 7px; + border-radius: 0px; padding: 9px; - margin-bottom: 0px; border: 1px solid rgba(0, 0, 0, 0.42); - border-top-left-radius: 0px; - border-bottom-left-radius: 0px; } .md-field { @@ -174,19 +179,31 @@ body, position: absolute; bottom: 32px; right: 50px; + display: flex; } .home-button { border-radius: 7px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; - margin-right: -1px; - height: 52px; + margin-right: 0px; + height: 53px; margin-top: 4px; box-shadow: none; border: 1px solid rgba(0, 0, 0, 0.42); } +.hide-controls-button { + border-radius: 7px; + border-top-left-radius: 0px; + border-bottom-left-radius: 0px; + height: 53px; + box-shadow: none; + margin-top: 4px; + margin-left: 0px; + border: 1px solid rgba(0, 0, 0, 0.42); +} + #docs, .container { width: 100%;