+ @if (_profile?.MappedConcepts != null && _profile.MappedConcepts.Any())
+ {
+
+ @foreach (var concept in _profile.MappedConcepts)
+ {
+
+ @concept.Type
+ @concept.Content
+
+ }
+
+ }
+ else
+ {
+
+
+
Brak pojęć. Rozpocznij czytanie, aby AI wyodrębniło kluczowe koncepty.
+
+ }
}
else
{
-
-
Mapowanie AI
-
Najedź na węzeł, aby zbadać pojęcie wydobyte przez Nexus AI.
+
+
+
+ @if (_profile?.MappedConcepts != null && _profile.MappedConcepts.Any())
+ {
+
+ @for (int i = 0; i < _profile.MappedConcepts.Count; i++)
+ {
+ var concept = _profile.MappedConcepts[i];
+ var angle = i * (360.0 / _profile.MappedConcepts.Count);
+ var dist = 65;
+
SetHoveredConcept(concept)"
+ @onmouseout="ClearHoveredConcept">
+
+ }
+
+ }
+ else
+ {
+
+ }
+
+
+ @(string.IsNullOrEmpty(_hoveredConceptLabel) ? "TU JESTEŚ" : _hoveredConceptLabel)
+
+
+ @if (_hoveredConcept != null)
+ {
+
+
@_hoveredConcept.Type
+
@_hoveredConcept.Content
+
+ }
+ else
+ {
+
+
Mapowanie AI
+
Najedź na węzeł, aby zbadać pojęcie wydobyte przez Nexus AI.
+
+ }
}
@@ -173,6 +206,32 @@
private UserProfileDto? _profile;
private MappedConceptDto? _hoveredConcept;
private string _hoveredConceptLabel = string.Empty;
+ private bool _showSimplifiedList = false;
+
+ protected override async Task OnAfterRenderAsync(bool firstRender)
+ {
+ if (firstRender)
+ {
+ try
+ {
+ var isMobile = await JS.InvokeAsync
("eval", "window.innerWidth < 768");
+ if (isMobile)
+ {
+ _showSimplifiedList = true;
+ StateHasChanged();
+ }
+ }
+ catch
+ {
+ // Fallback for tests or prerendering
+ }
+ }
+ }
+
+ private void ToggleGraphMode()
+ {
+ _showSimplifiedList = !_showSimplifiedList;
+ }
protected override async Task OnInitializedAsync()
{
diff --git a/src/NexusReader.UI.Shared/Pages/Dashboard.razor.css b/src/NexusReader.UI.Shared/Pages/Dashboard.razor.css
index 29e079a..cc5a907 100644
--- a/src/NexusReader.UI.Shared/Pages/Dashboard.razor.css
+++ b/src/NexusReader.UI.Shared/Pages/Dashboard.razor.css
@@ -524,14 +524,17 @@
}
/* Mobile Dashboard Overrides */
-@media (max-width: 768px) {
+@media (max-width: 767px) {
.dashboard-content {
padding: 1.25rem 0.75rem;
}
.profile-header {
- padding: 1.5rem 1rem;
+ padding: 24px 16px;
+ background: var(--bg-surface);
+ border: 1px solid var(--border);
border-radius: 16px;
+ margin-bottom: 24px;
}
.profile-visual {
@@ -575,6 +578,14 @@
font-size: 0.75rem;
}
+ .section-title {
+ font-size: 2rem;
+ font-weight: 700;
+ letter-spacing: -0.5px;
+ margin-bottom: 16px;
+ color: var(--text-main);
+ }
+
.main-grid {
grid-template-columns: 1fr !important;
gap: 1.25rem !important;
@@ -725,5 +736,190 @@
color: var(--accent);
}
+/* --- Concepts Linear Stack for Mobile/Utility Switch --- */
+.concepts-linear-stack {
+ height: 180px;
+ display: flex;
+ flex-direction: column;
+ overflow-y: auto;
+ gap: 0.5rem;
+ padding-right: 0.5rem;
+}
+
+.concept-linear-list {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+}
+
+.concept-linear-item {
+ display: flex;
+ align-items: center;
+ gap: 0.75rem;
+ padding: 0.6rem 0.75rem;
+ background: rgba(255, 255, 255, 0.02);
+ border: 1px solid rgba(255, 255, 255, 0.05);
+ border-radius: 8px;
+ font-size: 0.85rem;
+ color: var(--text-main);
+ transition: all 0.2s ease;
+}
+
+.concept-linear-item:hover {
+ background: rgba(255, 255, 255, 0.04);
+ border-color: rgba(0, 255, 153, 0.2);
+ transform: translateX(2px);
+}
+
+.concept-badge {
+ padding: 2px 8px;
+ border-radius: 4px;
+ font-size: 0.7rem;
+ font-weight: 700;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ white-space: nowrap;
+}
+
+.concept-badge.rule {
+ background: rgba(255, 70, 70, 0.1);
+ color: #ff8b8b;
+ border: 1px solid rgba(255, 70, 70, 0.2);
+}
+
+.concept-badge.definition {
+ background: rgba(255, 176, 58, 0.1);
+ color: #ffd18c;
+ border: 1px solid rgba(255, 176, 58, 0.2);
+}
+
+.concept-badge.table {
+ background: rgba(217, 70, 239, 0.1);
+ color: #f5d0fe;
+ border: 1px solid rgba(217, 70, 239, 0.2);
+}
+
+.concept-badge.section {
+ background: rgba(59, 130, 246, 0.1);
+ color: #93c5fd;
+ border: 1px solid rgba(59, 130, 246, 0.2);
+}
+
+.concept-badge.bridge {
+ background: rgba(6, 182, 212, 0.1);
+ color: #67e8f9;
+ border: 1px solid rgba(6, 182, 212, 0.2);
+}
+
+.concept-badge.concept {
+ background: rgba(0, 210, 196, 0.05);
+ color: #e0e0e0;
+ border: 1px solid rgba(0, 210, 196, 0.2);
+}
+
+.concept-text {
+ flex: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ font-weight: 500;
+}
+
+.concepts-empty-list {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+ color: var(--text-muted);
+ font-size: 0.85rem;
+ text-align: center;
+ gap: 0.5rem;
+}
+
+.concepts-empty-list p {
+ margin: 0;
+}
+
+.view-toggle-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.35rem;
+ background: rgba(255, 255, 255, 0.03);
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ color: var(--text-muted);
+ padding: 0.35rem 0.75rem;
+ border-radius: 6px;
+ font-size: 0.75rem;
+ font-weight: 600;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.view-toggle-btn:hover {
+ background: rgba(0, 255, 153, 0.08);
+ border-color: var(--accent);
+ color: var(--accent);
+}
+
+/* --- Light Theme Overrides for Concepts Stack --- */
+.theme-light .concept-linear-item {
+ background: rgba(0, 0, 0, 0.02);
+ border-color: rgba(0, 0, 0, 0.05);
+ color: var(--text-main);
+}
+
+.theme-light .concept-linear-item:hover {
+ background: rgba(0, 0, 0, 0.04);
+ border-color: rgba(16, 185, 129, 0.2);
+}
+
+.theme-light .concept-badge.rule {
+ background: rgba(220, 38, 38, 0.05);
+ color: #991b1b;
+ border-color: rgba(220, 38, 38, 0.15);
+}
+
+.theme-light .concept-badge.definition {
+ background: rgba(217, 119, 6, 0.05);
+ color: #92400e;
+ border-color: rgba(217, 119, 6, 0.15);
+}
+
+.theme-light .concept-badge.table {
+ background: rgba(192, 132, 252, 0.05);
+ color: #6b21a8;
+ border-color: rgba(192, 132, 252, 0.15);
+}
+
+.theme-light .concept-badge.section {
+ background: rgba(37, 99, 235, 0.05);
+ color: #1e3a8a;
+ border-color: rgba(37, 99, 235, 0.15);
+}
+
+.theme-light .concept-badge.bridge {
+ background: rgba(8, 145, 178, 0.05);
+ color: #155e75;
+ border-color: rgba(8, 145, 178, 0.15);
+}
+
+.theme-light .concept-badge.concept {
+ background: rgba(13, 148, 136, 0.03);
+ color: #115e59;
+ border-color: rgba(13, 148, 136, 0.1);
+}
+
+.theme-light .view-toggle-btn {
+ background: rgba(0, 0, 0, 0.02);
+ border-color: rgba(0, 0, 0, 0.08);
+}
+
+.theme-light .view-toggle-btn:hover {
+ background: rgba(16, 185, 129, 0.08);
+ border-color: var(--accent);
+ color: var(--accent);
+}
+
diff --git a/src/NexusReader.UI.Shared/Pages/MyBooks.razor.css b/src/NexusReader.UI.Shared/Pages/MyBooks.razor.css
index 4b089b4..84e02d5 100644
--- a/src/NexusReader.UI.Shared/Pages/MyBooks.razor.css
+++ b/src/NexusReader.UI.Shared/Pages/MyBooks.razor.css
@@ -407,3 +407,37 @@
.theme-light .progress-bar {
background: #e4e1d9;
}
+
+@media (max-width: 767px) {
+ .my-books-page {
+ padding: 1.5rem 1rem;
+ }
+
+ .my-books-header {
+ margin-bottom: 1.5rem;
+ flex-direction: column;
+ align-items: stretch;
+ gap: 1rem;
+ }
+
+ .header-title-section h1 {
+ font-size: 1.75rem;
+ text-align: center;
+ }
+
+ .header-title-section .subtitle {
+ text-align: center;
+ }
+
+ .add-book-trigger {
+ width: 100%;
+ text-align: center;
+ padding: 0.9rem 1.5rem;
+ }
+
+ .books-grid, .loading-grid {
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
+ gap: 1.25rem;
+ }
+}
+
diff --git a/src/NexusReader.UI.Shared/wwwroot/app.css b/src/NexusReader.UI.Shared/wwwroot/app.css
index 81690bc..a2333a9 100644
--- a/src/NexusReader.UI.Shared/wwwroot/app.css
+++ b/src/NexusReader.UI.Shared/wwwroot/app.css
@@ -8,6 +8,7 @@
--text-muted: #a1a1aa;
--accent: #00ff99;
--accent-glow: rgba(0, 255, 153, 0.3);
+ --border: rgba(255, 255, 255, 0.05);
/* Legacy mapping for backwards compatibility */
--nexus-neon: var(--accent);
@@ -152,6 +153,7 @@
--text-muted: #a1a1aa;
--accent: #00ff99;
--accent-glow: rgba(0, 255, 153, 0.3);
+ --border: rgba(255, 255, 255, 0.05);
/* Legacy mapping for backwards compatibility */
--nexus-bg: var(--bg-base);
@@ -169,6 +171,7 @@
--text-muted: #78716c;
--accent: #10b981;
--accent-glow: rgba(16, 185, 129, 0.2);
+ --border: rgba(0, 0, 0, 0.08);
/* Legacy mapping for backwards compatibility */
--nexus-bg: var(--bg-base);