Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<title>Ankimo — 你的 Anki 笔记流</title>
<meta name="description" content="Ankimo:把快速记录与 Anki 记忆连接起来">
<meta name="theme-color" content="#fffdfa">
<link rel="icon" href="/icon.svg?v=2" type="image/svg+xml">
<link rel="icon" href="/icon-32.png?v=2" type="image/png" sizes="32x32">
<link rel="apple-touch-icon" href="/apple-touch-icon.png?v=2">
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=2" color="#246b4a">
<link rel="manifest" href="/site.webmanifest?v=2">
<link rel="icon" href="/icon.svg?v=3" type="image/svg+xml">
<link rel="icon" href="/icon-32.png?v=3" type="image/png" sizes="32x32">
<link rel="apple-touch-icon" href="/apple-touch-icon.png?v=3">
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=3" color="#246b4a">
<link rel="manifest" href="/site.webmanifest?v=3">
</head>
<body>
<div id="root"></div>
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
Binary file modified public/icon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"theme_color": "#246b4a",
"icons": [
{
"src": "/icon-192.png?v=2",
"src": "/icon-192.png?v=3",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "/icon-512.png?v=2",
"src": "/icon-512.png?v=3",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
Expand Down
5 changes: 2 additions & 3 deletions src/features/navigation/TagTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ export function TagTree({ allTags, pinnedTags, activeFilter, onTagSelect, onTogg

return (
<div className="tag-node" key={fullTag}>
<div className={`tag-row${active ? ' active' : ''}`} style={{ paddingLeft: `${12 + (prefix ? prefix.split('::').length * 16 : 0)}px` }}>
<button className="tag-filter-button" type="button" aria-label={`按标签筛选 ${fullTag}`} aria-expanded={hasChildren ? expanded : undefined} onClick={onFilterClick}>
<div className={`tag-row${active ? ' active' : ''}`}>
<button className="tag-filter-button" type="button" title={fullTag} aria-label={`按标签筛选 ${fullTag}`} aria-expanded={hasChildren ? expanded : undefined} onClick={onFilterClick}>
<span className={`tag-toggle${hasChildren ? '' : ' is-empty'}`} aria-hidden="true">{tagToggleIcon(expanded, hasChildren)}</span>
<span className="tag-icon" aria-hidden="true" />
<span className="tag-name">{name}</span>
</button>
<button className={`tag-pin${isPinned ? ' pinned' : ''}`} data-tag={fullTag} type="button" aria-label={`${isPinned ? '取消固定' : '固定'}标签 ${fullTag}`} aria-pressed={isPinned} onClick={(event) => { event.stopPropagation(); onTogglePin(fullTag); }} />
Expand Down
26 changes: 11 additions & 15 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ textarea {
width: 28px;
height: 28px;
flex: 0 0 28px;
background: url("/icon.svg?v=2") center / contain no-repeat;
background: url("/icon.svg?v=3") center / contain no-repeat;
}

.logo-subtitle {
Expand Down Expand Up @@ -529,7 +529,7 @@ textarea {
min-height: 34px;
align-items: center;
gap: 3px;
padding: 3px 5px;
padding: 3px 5px 3px 8px;
color: var(--graphite-soft);
font-size: 12px;
}
Expand All @@ -540,7 +540,7 @@ textarea {
min-height: 34px;
flex: 1 1 auto;
align-items: center;
gap: 3px;
overflow: hidden;
padding: 0;
appearance: none;
background: transparent;
Expand All @@ -557,22 +557,18 @@ textarea {
color: var(--green-dark);
}

.tag-row .tag-icon {
display: inline-block;
width: 11px;
height: 8px;
flex: 0 0 auto;
border: 1px solid currentColor;
border-radius: 50%;
opacity: .8;
transform: rotate(-35deg);
.tag-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.tag-toggle {
display: grid;
width: 24px;
width: 20px;
height: 28px;
flex: 0 0 24px;
flex: 0 0 20px;
place-items: center;
appearance: none;
background: transparent;
Expand Down Expand Up @@ -637,7 +633,7 @@ textarea {
}

.tag-children {
margin-left: 14px;
margin-left: 12px;
border-left: 1px solid var(--line);
}

Expand Down