Skip to content

Commit e1b45fc

Browse files
committed
V:: v.0.8.3
Minor style fixes
1 parent a2b78f8 commit e1b45fc

File tree

8 files changed

+27
-9
lines changed

8 files changed

+27
-9
lines changed

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "DjVu.js Viewer",
44
"short_name": "DV",
5-
"version": "0.8.2.0",
5+
"version": "0.8.3.0",
66
"author": "RussCoder",
77
"homepage_url": "https://github.com/RussCoder/djvujs",
88
"description": "Opens links to .djvu files. Allows opening files from a local disk. Processes <object> & <embed> tags.",

viewer/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# DjVu.js Viewer's Changelog
22

3+
## v.0.8.3 (14.11.2021)
4+
5+
- French translation update.
6+
- Minor style fixes.
7+
38
## v.0.8.2 (23.09.2021)
49

510
- Support for big images (up to 20K * 20K pixels) in the single page view mode.

viewer/src/DjVuViewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Events = constant({
1717

1818
export default class DjVuViewer extends EventEmitter {
1919

20-
static VERSION = '0.8.2';
20+
static VERSION = '0.8.3';
2121

2222
static Events = Events;
2323
static Constants = Constants;

viewer/src/components/Language/LanguagePanel.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,31 @@ const LanguagePanelRoot = styled.div`
1111
display: flex;
1212
font-size: 20px;
1313
margin-top: 0.5em;
14-
align-items: center;
14+
align-items: flex-end;
1515
justify-content: center;
1616
flex-wrap: wrap;
17+
padding: 0 0.5em;
1718
`;
1819

1920
const selectedLanguageItem = css`
2021
border-bottom: 3px solid var(--highlight-color);
2122
color: var(--highlight-color);
2223
cursor: default;
24+
padding-top: 0;
2325
`;
2426

2527
const LanguageItem = styled.div`
2628
margin-left: 0.5em;
29+
margin-bottom: 0.2em;
2730
cursor: pointer;
2831
white-space: nowrap;
32+
padding-top: 2px;
33+
border-bottom: 1px solid transparent;
34+
vertical-align: top;
2935
3036
${p => p.$selected ? selectedLanguageItem : `
3137
:hover {
32-
border-bottom: 1px solid var(--color);
38+
border-color: var(--color);
3339
}
3440
`};
3541
`;
@@ -56,7 +62,7 @@ export const LanguagePanel = () => {
5662
</LanguageItem>
5763
);
5864
})}
59-
<AddLanguageButton css={`font-size: 1.5em;`} />
65+
<AddLanguageButton css={`font-size: 1.5em; align-self: center;`} />
6066
</LanguagePanelRoot>
6167
);
6268
};

viewer/src/components/LeftPanel/ContentsPanel.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ const Header = styled.div`
2424
padding-bottom: 0.2em;
2525
display: flex;
2626
justify-content: space-between;
27+
28+
span:first-child {
29+
margin-right: 0.5em;
30+
overflow: hidden;
31+
text-overflow: ellipsis;
32+
}
2733
`;
2834

2935
class ContentsPanel extends React.Component {
@@ -58,7 +64,7 @@ class ContentsPanel extends React.Component {
5864
return (
5965
<Root>
6066
<Header>
61-
<span css={`margin-right: 0.5em;`}>{t("Contents")}</span>
67+
<span>{t("Contents")}</span>
6268
<CloseButton
6369
onClick={() => dispatch({ type: ActionTypes.CLOSE_CONTENTS })}
6470
/>

viewer/src/components/cssMixins.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { css } from "styled-components";
22

33
export const iconButton = css`
44
cursor: pointer;
5+
flex: 0 0 auto;
56
67
&:hover {
78
transform: scale(1.1);

viewer/src/locales/French.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export default {
241241
"Menu":
242242
"Menu",
243243
"Document":
244-
"Document"
244+
"Document",
245245
"About":
246246
"À propos",
247247
"Print":
@@ -260,4 +260,4 @@ export default {
260260
"Page entier",
261261
"Fullscreen mode":
262262
"Plein écran",
263-
};
263+
};

viewer/src/locales/Italian.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,4 @@ export default {
260260
"Modalità a piena pagina",
261261
"Fullscreen mode":
262262
"Modalità a pieno schermo",
263-
};
263+
};

0 commit comments

Comments
 (0)