feat: Enhance sync status view with filtering and improved UI
- Updated workspace configuration for better tab management. - Added new localization strings for sync status and post details in English, Simplified Chinese, and Traditional Chinese. - Refactored sync status view to include filtering options (all, synced, pending) and improved post grouping by category. - Enhanced post card rendering with detailed information and action buttons for update, publish, and pull. - Implemented a modal for viewing sync history with clear history functionality. - Improved styling for better user experience across various components. - Added metadata to Git团队协作指南大纲.md for Halo integration.
This commit is contained in:
+263
-4
@@ -1,8 +1,267 @@
|
||||
/*
|
||||
* Obsidian Halo Plugin Styles
|
||||
*/
|
||||
|
||||
This CSS file will be included with your plugin, and
|
||||
available in the app when your plugin is enabled.
|
||||
/* Sync Status View */
|
||||
.sync-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
If your plugin does not need CSS, delete this file.
|
||||
.sync-view-title {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
*/
|
||||
.sync-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.sync-icon-btn {
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
padding: 4px;
|
||||
opacity: 0.7;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.sync-icon-btn:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.sync-search-input {
|
||||
outline: none;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.sync-search-input:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.sync-filter-tabs {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.sync-filter-tab {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.sync-filter-tab.active {
|
||||
color: var(--interactive-accent);
|
||||
border-bottom-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.sync-content {
|
||||
background: var(--background-primary);
|
||||
}
|
||||
|
||||
.sync-empty {
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
padding: 40px 20px;
|
||||
}
|
||||
|
||||
.sync-group-header {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sync-group-header:hover {
|
||||
color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
/* Post Card */
|
||||
.sync-post-card {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.sync-post-card:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.card-meta-sep {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
.card-tag {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.card-tag-more {
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.card-btn {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.card-btn:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.card-btn-primary {
|
||||
background: var(--interactive-accent);
|
||||
border-color: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.card-btn-primary:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* Detail Modal */
|
||||
.sync-detail-content {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.detail-header {
|
||||
margin: 0 0 16px 0;
|
||||
}
|
||||
|
||||
.detail-status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 12px;
|
||||
border-radius: 16px;
|
||||
background: var(--background-secondary);
|
||||
font-size: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.detail-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.detail-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.detail-label {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.detail-value {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.detail-version-section {
|
||||
background: var(--background-secondary);
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.detail-version-title {
|
||||
font-weight: 600;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.detail-version-info {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.detail-close-btn {
|
||||
background: var(--background-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.detail-close-btn:hover {
|
||||
background: var(--interactive-accent);
|
||||
border-color: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
/* History Modal */
|
||||
.sync-history-content {
|
||||
max-width: 520px;
|
||||
}
|
||||
|
||||
.history-modal-title {
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.history-stats {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.history-empty {
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.history-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.history-title {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.history-time {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.history-clear-btn {
|
||||
background: var(--background-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
padding: 8px 16px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.history-clear-btn.danger:hover {
|
||||
background: var(--color-red);
|
||||
border-color: var(--color-red);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Stats Bar */
|
||||
.sync-stats {
|
||||
background: var(--background-secondary);
|
||||
}
|
||||
|
||||
.sync-stats-pending {
|
||||
color: var(--color-orange);
|
||||
}
|
||||
|
||||
/* Animation */
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
}
|
||||
|
||||
.sync-status-dot.pulse {
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
/* Dark mode support */
|
||||
.is-mobile .sync-post-card {
|
||||
border-radius: 8px;
|
||||
}
|
||||
Reference in New Issue
Block a user