Skip to content

Commit

Permalink
chore: Add Chatwoot SDK to Chatwoot Dashboard (chatwoot#1726)
Browse files Browse the repository at this point in the history
Add Chatwoot SDK to Chatwoot Dashboard
  • Loading branch information
pranavrajs authored Feb 8, 2021
1 parent f46c4b5 commit d4c2a78
Show file tree
Hide file tree
Showing 14 changed files with 480 additions and 265 deletions.
3 changes: 2 additions & 1 deletion app/controllers/dashboard_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def set_global_config
'TERMS_URL',
'PRIVACY_URL',
'DISPLAY_MANIFEST',
'CREATE_NEW_ACCOUNT_FROM_DASHBOARD'
'CREATE_NEW_ACCOUNT_FROM_DASHBOARD',
'CHATWOOT_INBOX_TOKEN'
).merge(
APP_VERSION: Chatwoot.config[:version]
)
Expand Down
60 changes: 2 additions & 58 deletions app/javascript/dashboard/assets/scss/widgets/_sidemenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
.dropdown-pane {
@include elegant-card;
@include border-light;
bottom: 6rem;
display: block;
left: 18%;
top: -110px;
left: 5rem;
visibility: visible;
width: 80%;
z-index: 999;
Expand Down Expand Up @@ -120,62 +120,6 @@
line-height: $global-lineheight;
}

.current-user {
@include flex;
align-items: center;
cursor: pointer;
flex-direction: row;

.current-user--data {
@include flex;
flex-direction: column;

.current-user--name {
font-size: $font-size-small;
font-weight: $font-weight-medium;
line-height: 1;
margin-bottom: $space-smaller;
margin-left: $space-one;
margin-top: $space-micro;
}

.current-user--role {
color: $color-gray;
font-size: $font-size-mini;
margin-bottom: $zero;
margin-left: $space-one;
text-transform: capitalize;
}
}

.current-user--options {
font-size: $font-size-big;
margin-bottom: auto;
margin-left: auto;
margin-top: auto;
}

.notifications {
font-size: var(--font-size-big);
margin-bottom: auto;
margin-left: auto;
margin-top: auto;
position: relative;

.unread-badge {
background: var(--r-300);
border-radius: var(--space-small);
color: var(--white);
font-size: var(--font-size-micro);
font-weight: var(--font-weight-black);
left: var(--space-slab);
padding: 0 var(--space-smaller);
position: absolute;
top: var(--space-smaller);
}
}
}

.hamburger--menu {
cursor: pointer;
display: none;
Expand Down
Loading

0 comments on commit d4c2a78

Please sign in to comment.