Fix Subtle shift when hovering on "Create new file" button (#754)
This commit is contained in:
Родитель
a656d29869
Коммит
0498e8d4ae
|
@ -199,11 +199,6 @@ a .commit-ref:hover span {
|
|||
display: none !important;
|
||||
}
|
||||
|
||||
/* Remove Upload files button; drag and drop is available anyway */
|
||||
.file-navigation a[href*="/upload/"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Style for edit README button */
|
||||
#readme.blob #refined-github-readme-buttons {
|
||||
display: none;
|
||||
|
|
|
@ -19,6 +19,7 @@ import addOPLabels from './features/op-labels';
|
|||
import addMoreDropdown from './features/more-dropdown';
|
||||
import addReleasesTab from './features/add-releases-tab';
|
||||
import addTimeMachineLinksToComments from './features/add-time-machine-links-to-comments';
|
||||
import removeUploadFilesButton from './features/remove-upload-files-button';
|
||||
import scrollToTopOnCollapse from './features/scroll-to-top-on-collapse';
|
||||
import removeDiffSigns from './features/remove-diff-signs';
|
||||
import * as linkifyBranchRefs from './features/linkify-branch-refs';
|
||||
|
@ -125,6 +126,7 @@ function onDomReady() {
|
|||
|
||||
function ajaxedPagesHandler() {
|
||||
safely(hideEmptyMeta);
|
||||
safely(removeUploadFilesButton);
|
||||
safely(addTitleToEmojis);
|
||||
safely(enableCopyOnY.destroy);
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
import select from 'select-dom';
|
||||
import * as pageDetect from '../libs/page-detect';
|
||||
|
||||
const repoUrl = pageDetect.getRepoURL();
|
||||
|
||||
export default () => {
|
||||
if (pageDetect.isRepoRoot()) {
|
||||
const uploadFilesButton = select(`.file-navigation a[href^="/${repoUrl}/upload"]`);
|
||||
if (uploadFilesButton) {
|
||||
uploadFilesButton.remove();
|
||||
}
|
||||
}
|
||||
};
|
Загрузка…
Ссылка в новой задаче