chore(ui): minor ui improvements

This commit is contained in:
liyasthomas
2021-11-07 11:46:21 +05:30
parent 40c88b3e35
commit 510ba376e5
6 changed files with 55 additions and 27 deletions

View File

@@ -36,7 +36,7 @@
<p> <p>
<a href="https://hoppscotch.io"> <a href="https://hoppscotch.io">
<img <img
src="https://tiny.cc/hoppscotch_screenshot_1" src="https://raw.githubusercontent.com/hoppscotch/hoppscotch/main/packages/hoppscotch-app/static/banner.png"
alt="Screenshot" alt="Screenshot"
width="100%" width="100%"
/> />

View File

@@ -420,7 +420,7 @@ input[type="checkbox"] {
@apply inset-0; @apply inset-0;
@apply bg-dividerLight; @apply bg-dividerLight;
@apply opacity-0; @apply opacity-0;
@apply z-30; @apply z-20;
@apply transition; @apply transition;
content: ""; content: "";
@@ -429,7 +429,7 @@ input[type="checkbox"] {
.smart-splitter .splitpanes__splitter::after { .smart-splitter .splitpanes__splitter::after {
@apply absolute; @apply absolute;
@apply inset-0; @apply inset-0;
@apply z-30; @apply z-20;
@apply transition; @apply transition;
@apply flex; @apply flex;
@apply items-center; @apply items-center;

View File

@@ -280,10 +280,24 @@
py-4 py-4
rounded rounded
border border-dividerLight border border-dividerLight
bg-primaryLight flex flex-col
items-start
"
>
<span
class="
mb-4
px-2
py-1
flex
justify-center
items-center
font-semibold
rounded-full
bg-primaryDark
border border-divider
" "
> >
<span class="pb-2 flex items-center font-semibold">
<i class="text-secondaryLight mr-2 material-icons">help_outline</i> <i class="text-secondaryLight mr-2 material-icons">help_outline</i>
{{ $t("profile.roles") }} {{ $t("profile.roles") }}
</span> </span>

View File

@@ -263,6 +263,7 @@
"snippets": "Snippets" "snippets": "Snippets"
}, },
"profile": { "profile": {
"app_settings": "App Settings",
"editor": "Editor", "editor": "Editor",
"editor_description": "Editors can add, edit, and delete requests.", "editor_description": "Editors can add, edit, and delete requests.",
"no_permission": "You do not have permission to perform this action.", "no_permission": "You do not have permission to perform this action.",
@@ -330,10 +331,10 @@
"account_name_description": "This is your display name.", "account_name_description": "This is your display name.",
"background": "Background", "background": "Background",
"black_mode": "Black", "black_mode": "Black",
"sidebar_on_left": "Sidebar on left",
"change_font_size": "Change font size", "change_font_size": "Change font size",
"choose_language": "Choose language", "choose_language": "Choose language",
"dark_mode": "Dark", "dark_mode": "Dark",
"expand_navigation": "Expand navigation",
"experiments": "Experiments", "experiments": "Experiments",
"experiments_notice": "This is a collection of experiments we're working on that might turn out to be useful, fun, both, or neither. They're not final and may not be stable, so if something overly weird happens, don't panic. Just turn the dang thing off. Jokes aside, ", "experiments_notice": "This is a collection of experiments we're working on that might turn out to be useful, fun, both, or neither. They're not final and may not be stable, so if something overly weird happens, don't panic. Just turn the dang thing off. Jokes aside, ",
"extension_ver_not_reported": "Not Reported", "extension_ver_not_reported": "Not Reported",
@@ -348,7 +349,6 @@
"interceptor_description": "Middleware between application and APIs.", "interceptor_description": "Middleware between application and APIs.",
"language": "Language", "language": "Language",
"light_mode": "Light", "light_mode": "Light",
"expand_navigation": "Expand navigation",
"official_proxy_hosting": "Official Proxy is hosted by Hoppscotch.", "official_proxy_hosting": "Official Proxy is hosted by Hoppscotch.",
"profile": "Profile", "profile": "Profile",
"profile_description": "Update you profile details", "profile_description": "Update you profile details",
@@ -358,6 +358,7 @@
"proxy_use_toggle": "Use the proxy middleware to send requests", "proxy_use_toggle": "Use the proxy middleware to send requests",
"read_the": "Read the", "read_the": "Read the",
"reset_default": "Reset to default", "reset_default": "Reset to default",
"sidebar_on_left": "Sidebar on left",
"sync": "Synchronise", "sync": "Synchronise",
"sync_collections": "Collections", "sync_collections": "Collections",
"sync_description": "These settings are synced to cloud.", "sync_description": "These settings are synced to cloud.",

View File

@@ -13,7 +13,8 @@
class="bg-primaryLight h-24 md:h-32 -mb-11 rounded" class="bg-primaryLight h-24 md:h-32 -mb-11 rounded"
style="background-image: url('/images/cover.svg')" style="background-image: url('/images/cover.svg')"
></div> ></div>
<div class="flex px-4 items-end"> <div class="flex px-4 flex-col md:flex-row space-y-8 justify-between">
<div class="flex items-end">
<img <img
v-if="currentUser.photoURL" v-if="currentUser.photoURL"
:src="currentUser.photoURL" :src="currentUser.photoURL"
@@ -35,7 +36,19 @@
</p> </p>
</div> </div>
</div> </div>
<SmartTabs styles="sticky bg-primary z-10 top-0"> <div class="flex space-x-2 items-end">
<div>
<SmartItem
to="/settings"
svg="settings"
:label="$t('profile.app_settings')"
outline
/>
</div>
<FirebaseLogout outline />
</div>
</div>
<SmartTabs>
<SmartTab <SmartTab
:id="'sync'" :id="'sync'"
:label="$t('settings.account')" :label="$t('settings.account')"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB