Skip to content
Snippets Groups Projects
Commit 534cbc05 authored by AndiMajore's avatar AndiMajore
Browse files

adaptive size continued

parent c2ea1bea
No related branches found
No related tags found
No related merge requests found
<div *ngIf="wrapper"> <div *ngIf="wrapper">
<div> <div>
<p *ngIf="wrapper.data.name"> <p *ngIf="wrapper.data.name" [ngClass]="{'text-normal':smallStyle}">
<b><span>Name:</span></b> <b><span>Name:</span></b>
<span class="is-capitalized"> {{ wrapper.data.name }}</span> <span class="is-capitalized"> {{ wrapper.data.name }}</span>
</p> </p>
<p *ngIf="wrapper.type"> <p *ngIf="wrapper.type" [ngClass]="{'text-normal':smallStyle}">
<b><span>Type:</span></b> <b><span>Type:</span></b>
<span class="is-capitalized"> {{ wrapper.type }}</span> <span class="is-capitalized"> {{ wrapper.type }}</span>
</p> </p>
<p *ngIf="wrapper.data.group"> <p *ngIf="wrapper.data.group" [ngClass]="{'text-normal':smallStyle}">
<b><span>Group:</span></b> <b><span>Group:</span></b>
<span class="is-capitalized"> {{ wrapper.data.group }}</span> <span class="is-capitalized"> {{ wrapper.data.group }}</span>
</p> </p>
<p *ngIf="wrapper.data.uniprotAc"> <p *ngIf="wrapper.data.uniprotAc" [ngClass]="{'text-normal':smallStyle}">
<b><span>Access:</span></b> <b><span>Access:</span></b>
<a href="https://www.uniprot.org/uniprot/{{ wrapper.data.uniprotAc }}" target="_blank"> <a href="https://www.uniprot.org/uniprot/{{ wrapper.data.uniprotAc }}" target="_blank">
<span class="is-capitalized"> {{ wrapper.data.uniprotAc }}</span> <span class="is-capitalized"> {{ wrapper.data.uniprotAc }}</span>
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
</div> </div>
<app-toggle [value]="analysis.inSelection(wrapper)" <app-toggle [value]="analysis.inSelection(wrapper)" [smallStyle]="smallStyle"
(valueChange)="$event ? analysis.addItems([wrapper]) : analysis.removeItems([wrapper])" textOn="Selected" (valueChange)="$event ? analysis.addItems([wrapper]) : analysis.removeItems([wrapper])" textOn="Selected"
textOff="Deselected" tooltipOn="Add protein to selection." tooltipOff="Remove protein from selection."></app-toggle> textOff="Deselected" tooltipOn="Add protein to selection." tooltipOff="Remove protein from selection."></app-toggle>
</div> </div>
<div *ngIf="!wrapper"> <div *ngIf="!wrapper" [ngClass]="{'text-normal':smallStyle}" >
Please select a node for further information. Please select a node for further information.
</div> </div>
...@@ -6,18 +6,18 @@ import {AnalysisService} from '../../services/analysis/analysis.service'; ...@@ -6,18 +6,18 @@ import {AnalysisService} from '../../services/analysis/analysis.service';
@Component({ @Component({
selector: 'app-info-tile', selector: 'app-info-tile',
templateUrl: './info-tile.component.html', templateUrl: './info-tile.component.html',
styleUrls: ['./info-tile.component.scss'] styleUrls: ['./info-tile.component.scss', '../../pages/explorer-page/explorer-page.component.scss']
}) })
export class InfoTileComponent implements OnInit { export class InfoTileComponent implements OnInit {
@Input() @Input() public wrapper: Wrapper;
public wrapper: Wrapper; @Input() smallStyle: boolean;
constructor(public analysis: AnalysisService) { } constructor(public analysis: AnalysisService) { }
ngOnInit(): void { ngOnInit(): void {
} }
public beautify(url: string): string { public beautify(url: string): string {
if (url.startsWith('https://')) { if (url.startsWith('https://')) {
url = url.substr('https://'.length); url = url.substr('https://'.length);
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
</div> </div>
<footer *ngIf="myConfig.showFooter" class="card-footer toolbar explorer-footer center-panel" [ngClass]="{'footer-small':smallStyle}"> <footer *ngIf="myConfig.showFooter" class="card-footer toolbar explorer-footer" [ngClass]="{'footer-small':smallStyle}">
<button (click)="toCanvas()" class="button is-primary is-rounded has-tooltip" <button (click)="toCanvas()" class="button is-primary is-rounded has-tooltip"
data-tooltip="Take a screenshot of the current network."> data-tooltip="Take a screenshot of the current network.">
<span class="icon"> <span class="icon">
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
</header> </header>
<div *ngIf="collapseDetails"> <div *ngIf="collapseDetails">
<div class="card-content"> <div class="card-content">
<app-info-tile [wrapper]="selectedWrapper"></app-info-tile> <app-info-tile [wrapper]="selectedWrapper" [smallStyle]="smallStyle"></app-info-tile>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -29,7 +29,7 @@ $info: $primary; ...@@ -29,7 +29,7 @@ $info: $primary;
.explorer-footer{ .explorer-footer{
//position: absolute; //position: absolute;
//overflow: auto; //overflow: auto;
width: $main-width; //width: $main-width;
bottom: 0; bottom: 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment