diff --git a/common/static/scss/_sidebar.scss b/common/static/scss/_sidebar.scss index 06072aa6..469f8eb4 100644 --- a/common/static/scss/_sidebar.scss +++ b/common/static/scss/_sidebar.scss @@ -47,6 +47,7 @@ } .avatar { + height: calc(1rem * var(--pico-line-height) + var(--pico-nav-link-spacing-vertical) * 4); max-height: calc(1rem * var(--pico-line-height) + var(--pico-nav-link-spacing-vertical) * 4); max-width: calc(1rem * var(--pico-line-height) + var(--pico-nav-link-spacing-vertical) * 4); diff --git a/common/templates/console.html b/common/templates/console.html index fd3ee09c..15a31566 100644 --- a/common/templates/console.html +++ b/common/templates/console.html @@ -52,7 +52,7 @@ readonly value="{{ token | default:'Once generated, token will only be shown once here, previous tokens will be revoked.' }}"> + {% if request.user.is_authenticated %}value="Generate"{% else %}value="Login to generate" disabled{% endif %} />

Click Authorize button below, input your token there to invoke APIs with your account, which is required for APIs like /api/me