Skip to content

Commit

Permalink
Adjust sidebar and visualization styling
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Sep 25, 2023
1 parent 4736ba9 commit 82d89d8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container mb-1">
<div class="text-center h2">{{organization.name}}</div>
<div class="row">
<div class="col-xs-6">
<div class="col-6">
<div class="card shadow bg-white rounded m-1">
<div class="card-body">
<div class="card-text">
Expand All @@ -17,7 +17,7 @@
</div>
</div>
</div>
<div class="col-xs-6">
<div class="col-6">
<div class="card shadow bg-white rounded m-1">
<div class="card-body">
<div class="card-text">
Expand All @@ -28,7 +28,7 @@
</div>
<div class="card shadow bg-white rounded m-1">
<div class="card-body">
<div class="h5 text-truncate">{{ 'DATA_AND_ANALYTICS.ACADEMIC_AGE_GROUP.AVERAGE_PUBLICATIONS' | translate }}</div>
<div class="h5">{{ 'DATA_AND_ANALYTICS.ACADEMIC_AGE_GROUP.AVERAGE_PUBLICATIONS' | translate }}</div>
<scholars-barplot id="averagePubRateAcademicAgeBarplot" scale="1" [input]="averagePubRateAcademicAge" maxOverride="{{maxOverride | async}}"></scholars-barplot>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:host {
.col-6 {
padding: 0px;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<div class="container mb-1">
<div class="d-flex justify-content-center flex-nowrap">
<figure id="{{id}}"></figure>
</div>
<div class="d-flex justify-content-center flex-nowrap">
<figure id="{{id}}"></figure>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export class QuantityDistributionComponent implements OnChanges, OnDestroy, OnIn
public defaultId: string;

@Input()
public height = 394;
public height = 586;

@Input()
public width = 986;
public width = 896;

@Output()
public labelEvent: EventEmitter<string>;
Expand Down Expand Up @@ -104,10 +104,10 @@ export class QuantityDistributionComponent implements OnChanges, OnDestroy, OnIn
setTimeout(() => {
// set the dimensions and margins of the graph
const margin = {
top: 100,
bottom: 100,
left: 100,
right: 50,
top: 25,
bottom: 25,
left: 25,
right: 25,
};

const width = this.width - margin.left - margin.right;
Expand Down
4 changes: 2 additions & 2 deletions src/app/shared/sidebar/sidebar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
width: 100%;
padding: 10px;
.sidebar {
min-width: 250px;
max-width: 250px;
min-width: 200px;
max-width: 200px;
@media (max-width: 575.98px) {
min-width: 100%;
max-width: 100%;
Expand Down

0 comments on commit 82d89d8

Please sign in to comment.