You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-03 23:50:33 +02:00
Chore: Fixed VSCode rendering issue due to strange template
This commit is contained in:
@ -1,8 +1,6 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { useEffect, useRef, useCallback, useMemo } from 'react';
|
import { useEffect, useRef, useCallback, useMemo } from 'react';
|
||||||
import styled, { css } from 'styled-components';
|
import { StyledRoot, StyledAddButton, StyledShareIcon, StyledHeader, StyledHeaderIcon, StyledAllNotesIcon, StyledHeaderLabel, StyledListItem, StyledListItemAnchor, StyledExpandLink, StyledNoteCount, StyledSyncReportText, StyledSyncReport, StyledSynchronizeButton, StyledSpanFix } from './styles';
|
||||||
import shim from '@joplin/lib/shim';
|
|
||||||
import { StyledRoot, StyledAddButton, StyledShareIcon, StyledHeader, StyledHeaderIcon, StyledAllNotesIcon, StyledHeaderLabel, StyledListItem, StyledListItemAnchor, StyledExpandLink, StyledNoteCount, StyledSyncReportText, StyledSyncReport, StyledSynchronizeButton } from './styles';
|
|
||||||
import { ButtonLevel } from '../Button/Button';
|
import { ButtonLevel } from '../Button/Button';
|
||||||
import CommandService from '@joplin/lib/services/CommandService';
|
import CommandService from '@joplin/lib/services/CommandService';
|
||||||
import InteropService from '@joplin/lib/services/interop/InteropService';
|
import InteropService from '@joplin/lib/services/interop/InteropService';
|
||||||
@ -40,15 +38,6 @@ const { clipboard } = require('electron');
|
|||||||
|
|
||||||
const logger = Logger.create('Sidebar');
|
const logger = Logger.create('Sidebar');
|
||||||
|
|
||||||
// Workaround sidebar rendering bug on Linux Intel GPU.
|
|
||||||
// https://github.com/laurent22/joplin/issues/7506
|
|
||||||
const StyledSpanFix = styled.span`
|
|
||||||
${shim.isLinux() && css`
|
|
||||||
position: relative;
|
|
||||||
`}
|
|
||||||
`;
|
|
||||||
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
themeId: number;
|
themeId: number;
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
|
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
import shim from '@joplin/lib/shim';
|
||||||
import Button from '../../Button/Button';
|
import Button from '../../Button/Button';
|
||||||
|
import { css } from 'styled-components';
|
||||||
const styled = require('styled-components').default;
|
const styled = require('styled-components').default;
|
||||||
|
|
||||||
export const StyledRoot = styled.div`
|
export const StyledRoot = styled.div`
|
||||||
@ -132,3 +134,11 @@ export const StyledSyncReportText = styled.div`
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// Workaround sidebar rendering bug on Linux Intel GPU.
|
||||||
|
// https://github.com/laurent22/joplin/issues/7506
|
||||||
|
export const StyledSpanFix = styled.span`
|
||||||
|
${shim.isLinux() && css`
|
||||||
|
position: relative;
|
||||||
|
`}
|
||||||
|
`;
|
||||||
|
Reference in New Issue
Block a user