Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanvidrine committed May 10, 2021
1 parent 0b2c086 commit 70b52c8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
9 changes: 9 additions & 0 deletions common/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ html {

$border-radius: 8;

.category-breadcrumb>li {
height: unset;
}

@mixin drop-shadow() {
box-shadow: 0 1px 2px rgba(var(--always-black-rgb), .2);
}
Expand Down Expand Up @@ -221,6 +225,7 @@ body[class*="category-"]:not(.archetype-regular):not(.archetype-banner) {
& > li > a {
padding: 0.75em 0.714em;
margin: 0 0 .25em 0;
width: 100%;
}
}

Expand Down Expand Up @@ -259,6 +264,10 @@ body[class*="category-"]:not(.archetype-regular):not(.archetype-banner) {
}
}

.navigation-controls {
width: 100%;
}

.select-kit .select-kit-header .caret-icon {
&:before {
content: "\f0d7";
Expand Down
4 changes: 0 additions & 4 deletions desktop/desktop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
padding-right: 10vw;
}

#main-outlet {
padding-top: 6em;
}

.d-header {
height: 60px;
}
Expand Down
11 changes: 5 additions & 6 deletions desktop/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
// script wont run unless user is logged in
if (api.getCurrentUser() === null) return false;

let currentUser = Discourse.User.currentProp('username');

api.registerConnectorClass('discovery-below', 'sidebar', {
setupComponent(args, component) {
ajax("/u/" + currentUser + "/summary.json").then (function(result){
let username = component.get('currentUser.username');
ajax("/u/" + username + "/summary.json").then (function(result){

stinkinBadges = [];
const stinkinBadges = [];

userLikesReceived = result.user_summary.likes_received;
userLikesGiven = result.user_summary.likes_given;
const userLikesReceived = result.user_summary.likes_received;
const userLikesGiven = result.user_summary.likes_given;

result.badges.forEach(function(badges){
stinkinBadges.push(badges);
Expand Down

0 comments on commit 70b52c8

Please sign in to comment.