Skip to content

Commit

Permalink
fix: allow add payment sub menu to cover parent
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Oct 28, 2024
1 parent df7021c commit 46f42b6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@fastify/cors": "^10.0.1",
"@fastify/middie": "9.0.2",
"@fastify/static": "8.0.2",
"@modular-api/api": "^0.5.8",
"@modular-api/api": "^0.5.10",
"@modular-api/fastify-cart": "^0.3.1",
"@modular-api/fastify-checkout": "^0.4.7",
"@modular-api/fastify-oidc": "^0.6.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/api/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const sassVariables = {
*/
export default async function (fastify: FastifyInstance) {
const hostname = env.read('API_HOSTNAME') || env.read('VITE_API_HOSTNAME')
const corsOrigin = [`https://${hostname}`]

if (!hostname)
throw new Error(
Expand Down Expand Up @@ -208,7 +209,7 @@ export default async function (fastify: FastifyInstance) {
await fastify.register(modularApiPlugin, {
kysely,
cors: {
origin: [`https://${hostname}`]
origin: corsOrigin
},
trpc: {
createRouter,
Expand Down
6 changes: 5 additions & 1 deletion packages/app/src/components/invoice/InvoiceExpansionItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@
<q-item-section side>
<q-icon name="keyboard_arrow_right" />
</q-item-section>
<q-menu anchor="top end" self="top start">
<q-menu
:cover="$q.screen.lt.md"
anchor="top end"
self="top start"
>
<q-list>
<q-item
v-if="onAddPaymentCash"
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46f42b6

Please sign in to comment.