Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

fix(tags): icon hold with mistake#1147

Merged
mydearxym merged 1 commit intodevfromfix-tabs
Aug 13, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletionssrc/components/Switcher/Tabs/DesktopView.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -76,6 +76,7 @@ const Tabs: FC<TProps> = ({

const navRef = useRef(null)

console.log('--> layout: ', layout)
// set initial slipbar with of active item
// 给 slipbar 设置一个初始宽度
useEffect(() => {
Expand Down
6 changes: 3 additions & 3 deletionssrc/components/Switcher/Tabs/TabItem.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,9 +57,9 @@ const TabItem: FC<TProps> = ({
setItemWidth?.(index, width)
}, [setItemWidth, index])

const handleWrapperClick = useCallback(() =>{
clickableRef.current.click()
}, [clickableRef])
const handleWrapperClick = useCallback(() =>clickableRef.current.click(), [
clickableRef,
])

const handleLabelClick = useCallback(
(e) => {
Expand Down
4 changes: 3 additions & 1 deletionsrc/components/Switcher/styles/tabs/tab_icon.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,6 +7,9 @@ import css from '@/utils/css'

export const Wrapper = styled.div`
${css.flex('align-center')};
/* NOTE: the width and height here is a MUST, to hold the icon place, otherwise the width-calc will fail */
width: 20px;
height: 15px;

${css.media.mobile`
display: none;
Expand All@@ -17,7 +20,6 @@ export const Icon = styled(Img)<TActive>`
active ? theme('tabs.headerActive') : theme('tabs.header')};

${css.size(15)};
margin-right: 5px;

${css.media.mobile`
${css.size(13)};
Expand Down
2 changes: 1 addition & 1 deletionutils/themes/skins/solarized_dark.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -290,7 +290,7 @@ const solarizedDark = {
},
tabs: {
headerActive: primaryColor,
header: darken(0.1, primaryColor),
header: darken(0.05, primaryColor),
contentBg: '#0F4553',
headerBg: '#0d3a49',
headerActiveTop: primaryColor,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp