commit
d35500de7e
11 changed files with 56 additions and 57 deletions
|
@ -33,11 +33,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
||||||
* Fix don't allow dark mode with automatic night mode enabled ([#1005](https://github.com/lbryio/lbry-app/issues/1005))
|
* Fix don't allow dark mode with automatic night mode enabled ([#1005](https://github.com/lbryio/lbry-app/issues/1005))
|
||||||
* Fix description box on Publish (dark theme) ([#1356](https://github.com/lbryio/lbry-app/issues/#1356))
|
* Fix description box on Publish (dark theme) ([#1356](https://github.com/lbryio/lbry-app/issues/#1356))
|
||||||
* Fix price wrapping in price badge ([#1420](https://github.com/lbryio/lbry-app/pull/1420))
|
* Fix price wrapping in price badge ([#1420](https://github.com/lbryio/lbry-app/pull/1420))
|
||||||
* Fix spacing in search suggestions ([#1422])(https://github.com/lbryio/lbry-app/pull/1422))
|
* Fix spacing in search suggestions ([#1422](https://github.com/lbryio/lbry-app/pull/1422))
|
||||||
* Fix text/HTML files don't display correctly in-app anymore ([#1379])(https://github.com/lbryio/lbry-app/issues/1379)
|
* Fix text/HTML files don't display correctly in-app anymore ([#1379](https://github.com/lbryio/lbry-app/issues/1379))
|
||||||
* Fix notification modals when reward is claimed ([#1436])(https://github.com/lbryio/lbry-app/issues/1436) and ([#1407])(https://github.com/lbryio/lbry-app/issues/1407)
|
* Fix notification modals when reward is claimed ([#1436](https://github.com/lbryio/lbry-app/issues/1436)) and ([#1407](https://github.com/lbryio/lbry-app/issues/1407))
|
||||||
* Fix disabled cards(grayed out) ([#1466])(https://github.com/lbryio/lbry-app/issues/1466)
|
* Fix disabled cards(grayed out) ([#1466](https://github.com/lbryio/lbry-app/issues/1466))
|
||||||
* Fix markdown render ([#1179](https://github.com/lbryio/lbry-app/issues/1179))
|
* Fix markdown render ([#1179](https://github.com/lbryio/lbry-app/issues/1179))
|
||||||
|
* Fix new lines not showing correctly after markdown changes ([#1504](https://github.com/lbryio/lbry-app/issues/1504))
|
||||||
* Fix claim ID being null when reporting a claim that was not previously download ([issue#1512](https://github.com/lbryio/lbry-app/issues/1512)) ([PR#1530](https://github.com/lbryio/lbry-app/pull/1530))
|
* Fix claim ID being null when reporting a claim that was not previously download ([issue#1512](https://github.com/lbryio/lbry-app/issues/1512)) ([PR#1530](https://github.com/lbryio/lbry-app/pull/1530))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,7 @@ class VideoPlayButton extends React.PureComponent<Props> {
|
||||||
const icon = doesPlayback ? 'Play' : 'Folder';
|
const icon = doesPlayback ? 'Play' : 'Folder';
|
||||||
const label = doesPlayback ? 'Play' : 'View';
|
const label = doesPlayback ? 'Play' : 'View';
|
||||||
|
|
||||||
return (
|
return <Button button="primary" disabled={disabled} label={label} icon={icon} onClick={play} />;
|
||||||
<Button button="primary" disabled={disabled} label={label} icon={icon} onClick={play} />
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ const select = (state, props) => ({
|
||||||
playingUri: selectPlayingUri(state),
|
playingUri: selectPlayingUri(state),
|
||||||
isPaused: selectMediaPaused(state),
|
isPaused: selectMediaPaused(state),
|
||||||
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
|
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
|
||||||
autoplay: makeSelectClientSetting(settings.AUTOPLAY)(state)
|
autoplay: makeSelectClientSetting(settings.AUTOPLAY)(state),
|
||||||
});
|
});
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
|
|
|
@ -26,7 +26,7 @@ const select = state => ({
|
||||||
language: selectCurrentLanguage(state),
|
language: selectCurrentLanguage(state),
|
||||||
languages: selectLanguages(state),
|
languages: selectLanguages(state),
|
||||||
automaticDarkModeEnabled: makeSelectClientSetting(settings.AUTOMATIC_DARK_MODE_ENABLED)(state),
|
automaticDarkModeEnabled: makeSelectClientSetting(settings.AUTOMATIC_DARK_MODE_ENABLED)(state),
|
||||||
autoplay: makeSelectClientSetting(settings.AUTOPLAY)(state)
|
autoplay: makeSelectClientSetting(settings.AUTOPLAY)(state),
|
||||||
});
|
});
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
|
|
|
@ -31,7 +31,7 @@ type Props = {
|
||||||
currentTheme: string,
|
currentTheme: string,
|
||||||
themes: Array<string>,
|
themes: Array<string>,
|
||||||
automaticDarkModeEnabled: boolean,
|
automaticDarkModeEnabled: boolean,
|
||||||
autoplay: boolean
|
autoplay: boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
type State = {
|
type State = {
|
||||||
|
@ -144,7 +144,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
|
||||||
currentTheme,
|
currentTheme,
|
||||||
themes,
|
themes,
|
||||||
automaticDarkModeEnabled,
|
automaticDarkModeEnabled,
|
||||||
autoplay
|
autoplay,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const noDaemonSettings = !daemonSettings || Object.keys(daemonSettings).length === 0;
|
const noDaemonSettings = !daemonSettings || Object.keys(daemonSettings).length === 0;
|
||||||
|
|
|
@ -24,7 +24,7 @@ const defaultState = {
|
||||||
theme: getLocalStorageSetting(SETTINGS.THEME, 'light'),
|
theme: getLocalStorageSetting(SETTINGS.THEME, 'light'),
|
||||||
themes: getLocalStorageSetting(SETTINGS.THEMES, []),
|
themes: getLocalStorageSetting(SETTINGS.THEMES, []),
|
||||||
automaticDarkModeEnabled: getLocalStorageSetting(SETTINGS.AUTOMATIC_DARK_MODE_ENABLED, false),
|
automaticDarkModeEnabled: getLocalStorageSetting(SETTINGS.AUTOMATIC_DARK_MODE_ENABLED, false),
|
||||||
autoplay: getLocalStorageSetting(SETTINGS.AUTOPLAY, false)
|
autoplay: getLocalStorageSetting(SETTINGS.AUTOPLAY, false),
|
||||||
},
|
},
|
||||||
isNight: false,
|
isNight: false,
|
||||||
languages: {},
|
languages: {},
|
||||||
|
|
|
@ -12,6 +12,7 @@ $large-breakpoint: 1760px;
|
||||||
--side-nav-width: 220px;
|
--side-nav-width: 220px;
|
||||||
--side-nav-width-m: 240px;
|
--side-nav-width-m: 240px;
|
||||||
--side-nav-width-l: 320px;
|
--side-nav-width-l: 320px;
|
||||||
|
--font-size-subtext-multiple: 0.92;
|
||||||
|
|
||||||
--video-aspect-ratio: 56.25%; // 9 x 16
|
--video-aspect-ratio: 56.25%; // 9 x 16
|
||||||
--snack-bar-width: 756px;
|
--snack-bar-width: 756px;
|
||||||
|
|
|
@ -198,7 +198,6 @@
|
||||||
padding-top: $spacing-vertical * 1/3;
|
padding-top: $spacing-vertical * 1/3;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
font-family: 'metropolis-medium';
|
font-family: 'metropolis-medium';
|
||||||
font-size: 13px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card__actions {
|
.card__actions {
|
||||||
|
|
|
@ -45,8 +45,9 @@ div.editor-toolbar a {
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-preview {
|
.editor-preview {
|
||||||
background: var(--card-bg) !important;
|
font-size: calc(var(--font-size-subtext-multiple) * 1em);
|
||||||
border: 0 !important;
|
background: var(--color-bg) !important;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-preview-side {
|
.editor-preview-side {
|
||||||
|
@ -54,18 +55,6 @@ div.editor-toolbar a {
|
||||||
border: 1px solid var(--input-border-color) !important;
|
border: 1px solid var(--input-border-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-preview pre,
|
|
||||||
.editor-preview-side pre {
|
|
||||||
background: #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.editor-preview table td,
|
|
||||||
.editor-preview table th,
|
|
||||||
.editor-preview-side table td,
|
|
||||||
.editor-preview-side table th {
|
|
||||||
border: 1px solid var(--input-border-color) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.CodeMirror .CodeMirror-code .cm-tag {
|
.CodeMirror .CodeMirror-code .cm-tag {
|
||||||
color: #63a35c;
|
color: #63a35c;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
.editor-preview,
|
||||||
.markdown-preview {
|
.markdown-preview {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
/* Headings: title */
|
/* Headers */
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
@ -37,39 +37,48 @@
|
||||||
font-size: 0.84em;
|
font-size: 0.84em;
|
||||||
color: var(--color-help);
|
color: var(--color-help);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-preview table {
|
/* Paragraphs */
|
||||||
padding: 8px;
|
p {
|
||||||
margin: 16px 0;
|
white-space: pre-line;
|
||||||
background-color: var(--card-bg);
|
|
||||||
|
|
||||||
tr td,
|
|
||||||
tr th,
|
|
||||||
tr td:first-of-type,
|
|
||||||
tr th:first-of-type,
|
|
||||||
tr td:last-of-type,
|
|
||||||
tr th:last-of-type {
|
|
||||||
padding: 8px;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-preview code {
|
/* Strikethrough text */
|
||||||
display: block;
|
del {
|
||||||
padding: 8px;
|
color: var(--color-help);
|
||||||
margin: 16px 0;
|
}
|
||||||
background-color: var(--color-bg-alt);
|
|
||||||
color: var(--color-help);
|
|
||||||
font-size: 1em;
|
|
||||||
font-family: Consolas, 'Lucida Console', 'Source Sans', monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-preview hr {
|
/* Tables */
|
||||||
border: 1px solid var(--color-divider);
|
table {
|
||||||
}
|
padding: 8px;
|
||||||
|
margin: 16px 0;
|
||||||
|
background-color: var(--card-bg);
|
||||||
|
|
||||||
.markdown-preview del {
|
tr td,
|
||||||
color: var(--color-help);
|
tr th,
|
||||||
|
tr td:first-of-type,
|
||||||
|
tr th:first-of-type,
|
||||||
|
tr td:last-of-type,
|
||||||
|
tr th:last-of-type {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Horizontal Rule */
|
||||||
|
hr {
|
||||||
|
border: 1px solid var(--color-divider);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Code */
|
||||||
|
code {
|
||||||
|
display: block;
|
||||||
|
padding: 8px;
|
||||||
|
margin: 16px 0;
|
||||||
|
background-color: var(--color-bg-alt);
|
||||||
|
color: var(--color-help);
|
||||||
|
font-size: 1em;
|
||||||
|
font-family: Consolas, 'Lucida Console', 'Source Sans', monospace;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
table.table,
|
table.table,
|
||||||
|
.editor-preview table,
|
||||||
.markdown-preview table {
|
.markdown-preview table {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -28,6 +29,7 @@ table.table,
|
||||||
|
|
||||||
th {
|
th {
|
||||||
font-family: 'metropolis-semibold';
|
font-family: 'metropolis-semibold';
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
|
|
Loading…
Add table
Reference in a new issue