Skip to content

Commit 009fae9

Browse files
committed
ref: replace "word-wrap" with "overflow-wrap"
1 parent b18ce57 commit 009fae9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
1.1.4
2+
- ref: replace "word-wrap" with "overflow-wrap"
13
1.1.3
24
- enh: update i18n to reflect that members may not modify collections
35
1.1.2

ckanext/dcor_theme/cli/patch_ckan_templates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def patch_wider_resource_listing():
2828
data_res_item = path_template_res_item.read_text()
2929
# This makes the browser force a line-break even inside a word,
3030
# which means that it breaks long filenames.
31-
st = 'style="word-wrap: break-word"'
31+
st = 'style="overflow-wrap: break-word"'
3232
for old, new in [
3333
# remove the truncate filter for file names
3434
("| truncate(50)", ""),
@@ -44,7 +44,7 @@ def patch_wider_resource_listing():
4444
data_res = path_template_res.read_text()
4545
# This makes the browser force a line-break even inside a word,
4646
# which means that it breaks long filenames.
47-
st = 'style="word-wrap: break-word"'
47+
st = 'style="overflow-wrap: break-word"'
4848
for old, new in [
4949
# remove the truncate filter for file names
5050
("|truncate(25)", ""),
@@ -53,7 +53,7 @@ def patch_wider_resource_listing():
5353
f'<a {st} href="'),
5454
('<a class="flex-fill" href="',
5555
f'<a class="flex-fill" {st} href="'),
56-
# remove d-flex which breaks the word-wrap hack
56+
# remove d-flex which breaks the overflow-wrap hack
5757
('<li class="nav-item d-flex justify-content-between position-relative">', # noqa: E501
5858
'<li class="nav-item justify-content-between position-relative">'
5959
),

0 commit comments

Comments
 (0)