Skip to content

Commit

Permalink
chore: run format
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Dec 5, 2024
1 parent b5b0e35 commit 92b1c2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/lib/components/market/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export function inlineStickersAndKeychains(itemNameBlock: JQuery<Element>, itemI
itemNameBlock.parent().find('.market_listing_row_action')?.parent().remove();
// Remove Steam's stickers and keychains
itemNameBlock.parent().find('.market_listing_row_details')?.remove();


if (itemNameBlock.find('.csfloat-stickers-container').length) {
// Don't inline stickers if they're already inlined
Expand Down Expand Up @@ -147,4 +146,3 @@ export function inlineEasyInspect(itemImgContainer: JQuery<Element>, inspectLink
<a class="csfloat-easy-inspect" href="${inspectLink}">🔍</a>
`);
}

6 changes: 3 additions & 3 deletions src/lib/components/market/item_row_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,12 @@ export class ItemRowWrapper extends FloatElement {
MarketCheckHash();
}


// Make sure the parent containers can overflow
const parentContainer = $J(this).parent();
if (parentContainer) {
parentContainer.css('overflow', 'visible');
parentContainer.parent().css('overflow', 'visible');
}

}

render() {
Expand All @@ -170,7 +168,9 @@ export class ItemRowWrapper extends FloatElement {
return html`
<div class="float-row-wrapper">
${this.renderFloatBar()}
<span style="display: block;"> Float: ${this.itemInfo.floatvalue.toFixed(14)} ${renderClickableRank(this.itemInfo)} </span>
<span style="display: block;">
Float: ${this.itemInfo.floatvalue.toFixed(14)} ${renderClickableRank(this.itemInfo)}
</span>
Paint Seed:
${formatSeed(this.itemInfo)}${fadePercentage !== undefined
? html`<br />
Expand Down
11 changes: 9 additions & 2 deletions src/lib/types/steam.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export type SteamAssets = {
[appId in AppId]: {
[contextId in ContextId]: {[assetId: string]: rgAsset};
};
}
};

// Declares globals available in the Steam Page Context
declare global {
Expand Down Expand Up @@ -252,7 +252,14 @@ declare global {
const MoveItemToTrade: (el: HTMLElement) => void; // Only populated on create offer pages
const g_rgCurrentTradeStatus: CurrentTradeStatus;
const ShowItemInventory: (appID: AppId, contextID: ContextId, AssetID?: number) => void;
const CreateItemHoverFromContainer: (g_rgAssets: SteamAssets, elementId: string, appid: AppId, contextid: string, id: string, amount: number) => void;
const CreateItemHoverFromContainer: (
g_rgAssets: SteamAssets,
elementId: string,
appid: AppId,
contextid: string,
id: string,
amount: number
) => void;
}

export {};

0 comments on commit 92b1c2b

Please sign in to comment.