Skip to content

Commit

Permalink
fix(dicts): include cambridge dphrase block
Browse files Browse the repository at this point in the history
Closes crimx#480
  • Loading branch information
crimx committed Sep 30, 2019
1 parent 70bd9be commit 29f7b3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/components/dictionaries/cambridge/_style.shadow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
}

.dictCambridge-Entry {
margin-bottom: 1em;

a {
color: inherit;
}
Expand Down Expand Up @@ -372,7 +374,7 @@ h1.hw,
font-size: 1.5em;
font-weight: bold;
line-height: 1.3;
border-bottom: 1px solid currentColor;
// border-bottom: 1px solid currentColor;
}

.normal-entry .di-title {
Expand Down Expand Up @@ -2351,5 +2353,11 @@ li.dexamp {
}

.dphrase-block {
display: none;
padding: 5px;
}

.dwl {
position: relative;
margin-top: 2px;
border-top: solid thin #c76e06;
}
2 changes: 1 addition & 1 deletion src/components/dictionaries/dictionaries.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const stories = storiesOf('Content Scripts|Dictionaries', module)
{ name: 'Black', value: '#000' }
]
})
.addDecorator(withKnobs)
.addDecorator(
withSideEffect(
mockRuntimeMessage(async message => {
Expand Down Expand Up @@ -52,6 +51,7 @@ const stories = storiesOf('Content Scripts|Dictionaries', module)
height: 'auto'
})
)
.addDecorator(withKnobs)

Object.keys(getAllDicts()).forEach(id => {
// @ts-ignore: wrong storybook typing
Expand Down

0 comments on commit 29f7b3c

Please sign in to comment.