{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot-docs/issues/1637","repository_url":"https://api.github.com/repos/godotengine/godot-docs","labels_url":"https://api.github.com/repos/godotengine/godot-docs/issues/1637/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot-docs/issues/1637/comments","events_url":"https://api.github.com/repos/godotengine/godot-docs/issues/1637/events","html_url":"https://github.com/godotengine/godot-docs/issues/1637","id":346843582,"node_id":"MDU6SXNzdWUzNDY4NDM1ODI=","number":1637,"title":"Better sidebar behavior","user":{"login":"GammaGames","id":7832163,"node_id":"MDQ6VXNlcjc4MzIxNjM=","avatar_url":"https://avatars1.githubusercontent.com/u/7832163?v=4","gravatar_id":"","url":"https://api.github.com/users/GammaGames","html_url":"https://github.com/GammaGames","followers_url":"https://api.github.com/users/GammaGames/followers","following_url":"https://api.github.com/users/GammaGames/following{/other_user}","gists_url":"https://api.github.com/users/GammaGames/gists{/gist_id}","starred_url":"https://api.github.com/users/GammaGames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GammaGames/subscriptions","organizations_url":"https://api.github.com/users/GammaGames/orgs","repos_url":"https://api.github.com/users/GammaGames/repos","events_url":"https://api.github.com/users/GammaGames/events{/privacy}","received_events_url":"https://api.github.com/users/GammaGames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-02T03:14:40Z","updated_at":"2018-08-09T21:43:43Z","closed_at":null,"author_association":"NONE","body":"I find that I want to use the search bar very often, and the sidebar behaves strangely, if I am deep into the heirarchy and I have scrolled around in the sidebar and main page, the sidebar doesn't scroll back up to the top when I get to the top of the main page.\r\n\r\n![peek 2018-08-01 20-53](https://user-images.githubusercontent.com/7832163/43559855-0a79a782-95cd-11e8-84b5-51a703653ec9.gif)\r\n\r\nI propose making the search bar sticky at the top, so that it is always accessible to the user. All that has to be done is to change `div.wy-side-nav-search` to be outside of `div.wy-side-scroll`. The logo size could be animated to be smaller as the user scrolls down the heirarchy as well, to save vertical space.\r\n\r\n![peek 2018-08-01 21-11](https://user-images.githubusercontent.com/7832163/43560410-7e058cb4-95cf-11e8-826e-ec6904761071.gif)\r\n\r\nThe docs page already use jquery, so I used the following script to animate the size:\r\n```js\r\n$(\".wy-side-scroll\").on(\"scroll\", function(e) {\r\n  $(\".wy-side-nav-search img\").css(\"height\", `${Math.max(100, Math.min(200, 200 - this.scrollTop))}px`);\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/godotengine/godot-docs/issues/comments/411907355","html_url":"https://github.com/godotengine/godot-docs/issues/1637#issuecomment-411907355","issue_url":"https://api.github.com/repos/godotengine/godot-docs/issues/1637","id":411907355,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTkwNzM1NQ==","user":{"login":"Calinou","id":180032,"node_id":"MDQ6VXNlcjE4MDAzMg==","avatar_url":"https://avatars3.githubusercontent.com/u/180032?v=4","gravatar_id":"","url":"https://api.github.com/users/Calinou","html_url":"https://github.com/Calinou","followers_url":"https://api.github.com/users/Calinou/followers","following_url":"https://api.github.com/users/Calinou/following{/other_user}","gists_url":"https://api.github.com/users/Calinou/gists{/gist_id}","starred_url":"https://api.github.com/users/Calinou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calinou/subscriptions","organizations_url":"https://api.github.com/users/Calinou/orgs","repos_url":"https://api.github.com/users/Calinou/repos","events_url":"https://api.github.com/users/Calinou/events{/privacy}","received_events_url":"https://api.github.com/users/Calinou/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T21:43:43Z","updated_at":"2018-08-09T21:43:43Z","author_association":"MEMBER","body":"I'm not fond of animating the logo size (it tends to be distracting). Making it smaller in the first place (and redesigning it to use an horizontal layout) would make it less intrusive in general."}}
{"actor":{"display_login":"Calinou"}}