Skip to content

Commit 6b13011

Browse files
committed
Remove IFrame fix and replace the paternfly.min.css with patternfly-no-globals.css
1 parent bffc13a commit 6b13011

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

jupyter/utils/addons/apply.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
88

9-
pf_url="https://unpkg.com/@patternfly/[email protected]/patternfly.min.css"
9+
pf_url="https://unpkg.com/@patternfly/[email protected]/patternfly-no-globals.css"
1010

1111
static_dir="/opt/app-root/share/jupyter/lab/static"
1212
index_file="$static_dir/index.html"
@@ -31,12 +31,6 @@ fi
3131

3232
curl -o "$static_dir/pf.css" "$pf_url"
3333

34-
# Patternfly implemented some changes, setting the default height on iframe objects to "auto", which
35-
# excluded the default 800px height of Tensorboard's IFrame object. This stylesheet will simply search
36-
# for all IFrames that contain `tensorboard` on its URL and add a default height of 800px to it, and only
37-
# on it.
38-
echo "iframe[id*=\"tensorboard\"] { height: 800px !important }" >> "$static_dir/pf.css"
39-
4034
head_content=$(tr -d '\n' <"$head_file" | sed 's/@/\\@/g')
4135
body_content=$(tr -d '\n' <"$body_file" | sed 's/@/\\@/g')
4236

0 commit comments

Comments
 (0)