appsembler / edx-platform

Appsembler Tahoe fork of Open edX. Branches: `main` for Juniper and `hawthorn/main` for Hawthorn.
https://appsembler.com/products/tahoe/
GNU Affero General Public License v3.0
13 stars 15 forks source link

Hide site elements if render in iframe #1409

Closed VladyslavTy closed 1 month ago

VladyslavTy commented 1 month ago

Change description

We need to hide the elements like header, footer, nav panel if the site is rendered in iframe. These changes is a part of Seertech IDP integration for Snowflake customer. ENG-714

Added event listener that check if the site is render in iframe. If yes - add the display: none !important; to the styles of choosen elements by their className classesToHide If no - nothing changes

Type of change

Related issues

Fix [#1]()

Checklists

Development

Security

Code review

github-actions[bot] commented 1 month ago

Checking git merge conflicts against https://github.com/openedx/edx-platform.git

Comparing with open-release/nutmeg.master
Benchmark conflicts with main 301
Current conflicts 302
Summary Adds 1 new conflicts. How can we do better?
New conflicting files with 'open-release/nutmeg.master' ``` lms/static/sass/shared-v2/_base.scss lms/templates/main.html ```
Comparing with master
Benchmark conflicts with main 331
Current conflicts 332
Summary Adds 1 new conflicts. How can we do better?
New conflicting files with 'master' ``` lms/static/sass/shared-v2/_base.scss lms/templates/main.html ```
github-actions[bot] commented 1 month ago

Checking git merge conflicts against https://github.com/openedx/edx-platform.git

Comparing with open-release/nutmeg.master
Benchmark conflicts with main 301
Current conflicts 302
Summary Adds 1 new conflicts. How can we do better?
New conflicting files with 'open-release/nutmeg.master' ``` lms/static/sass/shared-v2/_base.scss lms/templates/main.html ```
Comparing with master
Benchmark conflicts with main 331
Current conflicts 332
Summary Adds 1 new conflicts. How can we do better?
New conflicting files with 'master' ``` lms/static/sass/shared-v2/_base.scss lms/templates/main.html ```