Skip to content

Commit 0de8b4b

Browse files
committed
Add default message for quick sell
1 parent c018022 commit 0de8b4b

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

_locales/en/messages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@
317317
"message": "CS Rating"
318318
},
319319

320+
"inventory_quick_sell_tip": {
321+
"message": "Mouse over a price to sell",
322+
"description": "This is shown before \"List at %price%\", keep it short"
323+
},
320324
"inventory_list_at": {
321325
"message": "List at $price$",
322326
"placeholders": {

scripts/community/inventory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286

287287
const hoverText = document.createElement( 'div' );
288288
hoverText.className = 'steamdb_orders_hover_text';
289-
hoverText.textContent = i18n.inventory_list_at.replace( '%price%', FormatCurrency( 0 ) );
289+
hoverText.textContent = i18n.inventory_quick_sell_tip;
290290

291291
const orderHeaderSummaries = document.createElement( 'div' );
292292

scripts/community/profile_inventory.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if( document.getElementById( 'inventory_link_753' ) )
3434
steamdb_options: _t( 'steamdb_options' ),
3535
view_on_steamdb: _t( 'view_on_steamdb' ),
3636
in_library: _t( 'in_library' ),
37+
inventory_quick_sell_tip: _t( 'inventory_quick_sell_tip' ),
3738
inventory_list_at: _t( 'inventory_list_at' ),
3839
inventory_sell_at: _t( 'inventory_sell_at' ),
3940
inventory_list_at_title: _t( 'inventory_list_at_title' ),

styles/inventory.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ steamdb-iteminfo-footer {
132132
font-weight: bold;
133133
color: #d2e885;
134134
border: 1px solid #799905;
135-
opacity: 0;
136-
transition: opacity 0.2s ease-in-out;
135+
opacity: 0.3;
136+
transition: opacity 0.2s;
137137

138138
> span {
139139
color: #a4d7f5;

0 commit comments

Comments
 (0)