Skip to content

Commit

Permalink
Fix detail problems (#842)
Browse files Browse the repository at this point in the history
* fix backdrop detail height

* fix preprocess method state

* commit config for env prod
  • Loading branch information
nighca authored Sep 2, 2024
1 parent ff3d66b commit 3d33a8d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions spx-gui/.env.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Config for env production

# Casdoor configuration
VITE_CASDOOR_ENDPOINT="https://acc.goplus.org"
VITE_CASDOOR_CLIENT_ID="4ff910257e9cdd89b6b8"

# Used not for authentication, but for fetching user profile
VITE_CASDOOR_ORGANIZATION_NAME="built-in"
VITE_CASDOOR_APP_NAME="application_stem"

VITE_API_BASE_URL="https://builder.goplus.org/api"
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ function handleMethodApplied(method: Method, output: File[]) {
const idx = supportedMethods.value.findIndex((m) => m.value === method)
// methods are applied in order, so we need to unapply the following methods, as thier inputs have changed
outputs.splice(idx)
outputs.push(output)
outputs[idx] = output
updateCostumes(output)
}
function handleMethodCancel(method: Method) {
const idx = supportedMethods.value.findIndex((m) => m.value === method)
outputs.splice(idx)
outputs.push(null)
outputs[idx] = null
updateCostumes(getMethodInput(method))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const [imgSrc, imgLoading] = useFileUrl(() => props.backdrop.img)
.img-wrapper {
width: 100%;
flex: 1 1 0;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
Expand Down

0 comments on commit 3d33a8d

Please sign in to comment.