Skip to content

Commit 6502e68

Browse files
committed
Fix spacing between multiple stocks, remove space before %
1 parent 6c2bb2f commit 6502e68

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

stocks@infinicode.de/components/stocks/menuStockTicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const MenuStockTicker = GObject.registerClass({
164164
y_align: Clutter.ActorAlign.CENTER,
165165
y_expand: true,
166166
style_class: `ticker-stock-quote-change-label fwb ${quoteColorStyleClass}`,
167-
text: `${roundOrDefault(change)} ${roundOrDefault(changePercent)} %${isOffMarket ? '*' : ''}`
167+
text: `${roundOrDefault(change)} ${roundOrDefault(changePercent)}%${isOffMarket ? '*' : ''}`
168168
})
169169

170170
stockNameLabel.get_clutter_text().set_ellipsize(Pango.EllipsizeMode.NONE)
@@ -215,7 +215,7 @@ export const MenuStockTicker = GObject.registerClass({
215215
y_align: regular ? Clutter.ActorAlign.CENTER : Clutter.ActorAlign.START,
216216
y_expand: true,
217217
style_class: `ticker-stock-quote-change-label fwb ${quoteColorStyleClass}`,
218-
text: `(${roundOrDefault(change)}${currencySymbol} | ${roundOrDefault(changePercent)} %)${isOffMarket ? '*' : ''}`
218+
text: `(${roundOrDefault(change)}${currencySymbol} | ${roundOrDefault(changePercent)}%)${isOffMarket ? '*' : ''}`
219219
})
220220

221221
stockQuoteLabel.get_clutter_text().set_ellipsize(Pango.EllipsizeMode.NONE)

stocks@infinicode.de/stylesheet.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
.stocks-extension .menu-stock-ticker .stock-info-box,
5353
.stocks-extension .menu-stock-ticker .stock-quote-box {
5454
font-size: 1em;
55+
margin-left: 10px;
56+
}
57+
58+
.stocks-extension .menu-stock-ticker .stock-info-box:first-child,
59+
.stocks-extension .menu-stock-ticker .stock-quote-box:first-child {
60+
margin-left: 0;
5561
}
5662

5763
.stocks-extension .menu-stock-ticker .ticker-stock-name-label,

0 commit comments

Comments
 (0)