0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 14:12:36 -05:00

Merge pull request #160 from tokens-studio/sizing-token-context-menu

Add new changes from token-studio-develop merge
This commit is contained in:
Akshay Gupta 2024-06-04 17:02:04 +05:30 committed by GitHub
commit 01d2a25c8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 13 deletions

View file

@ -14,7 +14,7 @@ values:
image: image:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: ghcr.io/tokens-studio/tokens-studio-for-penpot repository: ghcr.io/tokens-studio/tokens-studio-for-penpot
tag: 'frontend-{{ .SHA }}' tag: 'frontend-pr-{{ .SHA }}'
ingress: ingress:
hosts: hosts:
- host: "{{ .BRANCH | sanitizeDNSName }}.penpot.staging.tokens.studio" - host: "{{ .BRANCH | sanitizeDNSName }}.penpot.staging.tokens.studio"

View file

@ -116,7 +116,6 @@ manifests: |
enabled: true enabled: true
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
networking.gke.io/v1beta1.FrontendConfig: default-frontend-config
hosts: hosts:
- host: penpot.tokens.studio - host: penpot.tokens.studio
tls: tls:

View file

@ -12,7 +12,8 @@ jobs:
matrix: matrix:
include: include:
- dockerfile: Dockerfile.frontend - dockerfile: Dockerfile.frontend
type: frontend type: pr-frontend
name: frontend
permissions: permissions:
contents: read contents: read
packages: write packages: write
@ -30,7 +31,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.PAT_TOKEN }}
- name: Docker meta - name: Docker meta
id: meta id: meta
@ -42,9 +43,9 @@ jobs:
ghcr.io/tokens-studio/tokens-studio-for-penpot ghcr.io/tokens-studio/tokens-studio-for-penpot
- name: prebuild - name: prebuild
run: | run: |
echo "Building ${{ matrix.type }} image" echo "Building ${{ matrix.name }} image"
./manage.sh build-${{matrix.type}}-bundle ./manage.sh build-${{matrix.name}}-bundle
mv ./bundles/${{matrix.type}} ./docker/images/bundle-${{matrix.type}}/ mv ./bundles/${{matrix.name}} ./docker/images/bundle-${{matrix.name}}/
- name: Publish Docker images - name: Publish Docker images
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@ -65,5 +66,6 @@ jobs:
- name: 🍍 Deploy with Gimlet - name: 🍍 Deploy with Gimlet
uses: gimlet-io/gimlet-artifact-shipper-action@v0.8.3 uses: gimlet-io/gimlet-artifact-shipper-action@v0.8.3
env: env:
GIMLET_SERVER: ${{ secrets.GIMLET_SERVER }} GIMLET_SERVER: ${{ secrets.GIMLET_SERVER }}
GIMLET_TOKEN: ${{ secrets.GIMLET_TOKEN }} GIMLET_TOKEN: ${{ secrets.GIMLET_TOKEN }}
DEPLOY: 'true'

View file

@ -31,7 +31,8 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.PAT_TOKEN }}
- name: Docker meta - name: Docker meta
id: meta id: meta
@ -71,7 +72,7 @@ jobs:
with: with:
ENV: "prod" ENV: "prod"
APP: "penpot" APP: "penpot"
DEPLOY: "true" WAIT: "true"
smoke: smoke:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:

View file

@ -24,8 +24,19 @@
background-color: var(--menu-background-color); background-color: var(--menu-background-color);
max-height: 100vh; max-height: 100vh;
overflow-y: auto; overflow-y: auto;
// TODO: Fixes missing styles from parent context menu
li {
@include bodySmallTypography;
color: var(--menu-foreground-color);
}
} }
.token-context-submenu { // TODO: Allow selected items wihtout an icon for the context menu
position: absolute; .empty-icon {
width: 0;
height: 0;
}
.hidden-icon {
width: 11px;
} }