Skip to content

Commit

Permalink
Fix: header button click error and scrollbar rendering (#283)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Potts <[email protected]>
  • Loading branch information
misterpotts authored Feb 20, 2024
1 parent c3b178c commit 6b311a0
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: Fabricate 0.10.19
title: Fabricate 0.10.20
email: [email protected]
description: >-
End user documentation for the Foundry Virtual Tabletop (VTT) Module, "Fabricate".
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fabricate",
"version": "0.10.19",
"version": "0.10.20",
"description": "A system-agnostic, flexible crafting module for FoundryVT",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Hooks.on("renderActorSheet", async (actorSheet: ActorSheet, html: any) => {
const headerButton = {
label: "Crafting",
tooltip: "Fabricate Crafting",
class: "fab-actor-sheet-header-button header-button",
class: "fab-actor-sheet-header-button",
icon: "fas fabricate-icon-logo",
onclick: async () => {
await fabricateUserInterfaceAPI.renderActorCraftingApp({
Expand Down
35 changes: 28 additions & 7 deletions src/styles/module.less
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,7 @@ END COMMON STRUCTURAL STYLES

.dnd5e2 {
.fab-actor-sheet-header-button {
margin-top: 4px !important;
.fab-button-text {
display: none;
}
Expand Down Expand Up @@ -1347,9 +1348,22 @@ END COMMON STRUCTURAL STYLES
=====================================================================
*/

.scrollbar-reset {
* {
scrollbar-color: initial;
scrollbar-width: initial;
}
}

.fab-application-container {
.scrollbar-reset();
}

#fab-tw-application-container {
@import (inline) "preflight-reset.css";

.scrollbar-reset();

a {
&:hover {
text-shadow: none;
Expand Down Expand Up @@ -1379,7 +1393,7 @@ END COMMON STRUCTURAL STYLES
}

.scroll-track {
border-radius: 3px;
border-radius: 6px;
box-shadow: 0 0 1px #999 inset;
}

Expand All @@ -1390,16 +1404,23 @@ END COMMON STRUCTURAL STYLES
&::-webkit-scrollbar-thumb {
.scroll-thumb();
}
&::-webkit-scrollbar {
width: 6px;
}
}

.scroll-primary::-webkit-scrollbar-thumb {
.scroll-thumb();
background: #ac9e6c;
.scroll-primary {
&::-webkit-scrollbar-thumb {
.scroll-thumb();
background: #ac9e6c;
}
}

.scroll-secondary::-webkit-scrollbar-thumb {
.scroll-thumb();
background: #bc9276;
.scroll-secondary {
&::-webkit-scrollbar-thumb {
.scroll-thumb();
background: #bc9276;
}
}

img.avatar-image {
Expand Down

0 comments on commit 6b311a0

Please sign in to comment.