Skip to content

Commit 9f8a00d

Browse files
nmzaheerAkos Kitta
authored and
Akos Kitta
committed
Corrected library.properties assignment w.r.t description and summary
Ref: #1611
1 parent 2c74ad6 commit 9f8a00d

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

Diff for: arduino-ide-extension/src/browser/style/list-widget.css

+19
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,15 @@
9292
display: flex;
9393
justify-content: space-between;
9494
align-items: center;
95+
margin-top: 2px;
9596
}
9697

9798
.component-list-item .header .author {
9899
color: var(--theia-panelTitle-inactiveForeground);
99100
}
100101

101102
.component-list-item .header .version {
103+
font-weight: bold;
102104
color: var(--theia-panelTitle-inactiveForeground);
103105
padding-top: 4px;
104106
}
@@ -153,11 +155,28 @@
153155
white-space: nowrap;
154156
}
155157

158+
.component-list-item .summary {
159+
margin-top: 5px;
160+
margin-bottom: 5px;
161+
}
162+
156163
.component-list-item .footer {
157164
flex-direction: column-reverse;
158165
padding-top: 8px;
159166
}
160167

168+
.component-list-item .footer > select {
169+
margin: 0px;
170+
}
171+
172+
.component-list-item .footer > button {
173+
visibility: hidden;
174+
}
175+
176+
.component-list-item:hover .footer > button {
177+
visibility: visible;
178+
}
179+
161180
.component-list-item .footer > * {
162181
display: inline-block;
163182
}

Diff for: arduino-ide-extension/src/node/library-service-impl.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ export class LibraryServiceImpl
221221
{
222222
name: library.getName(),
223223
installedVersion,
224-
description: library.getSentence(),
225-
summary: library.getParagraph(),
224+
description: library.getParagraph(),
225+
summary: library.getSentence(),
226226
moreInfoLink: library.getWebsite(),
227227
includes: library.getProvidesIncludesList(),
228228
location: this.mapLocation(library.getLocation()),
@@ -462,9 +462,9 @@ function toLibrary(
462462
author: lib.getAuthor(),
463463
availableVersions,
464464
includes: lib.getProvidesIncludesList(),
465-
description: lib.getSentence(),
465+
description: lib.getParagraph(),
466466
moreInfoLink: lib.getWebsite(),
467-
summary: lib.getParagraph(),
467+
summary: lib.getSentence(),
468468
category: lib.getCategory(),
469469
types: lib.getTypesList(),
470470
};

0 commit comments

Comments
 (0)