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
6 changes: 3 additions & 3 deletions AutoPilot.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<MauiIcon Include="Resources\AppIcon\appicon.png" />

<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
<MauiSplashScreen Include="Resources\Splash\splash.png" Color="#0d1526" BaseSize="128,128" />

<!-- Images -->
<MauiImage Include="Resources\Images\*" />
Expand All @@ -69,8 +69,8 @@
<ItemGroup>
<PackageReference Include="GitHub.Copilot.SDK" Version="0.1.22" />
<PackageReference Include="Markdig" Version="0.40.0" />
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.31" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="10.0.31" />
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="10.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.0" />
<PackageReference Include="sqlite-net-pcl" Version="*" />
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="*" />
Expand Down
4 changes: 3 additions & 1 deletion Components/ChatMessageList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,11 @@
System.IO.File.Exists(trimmed))
{
var dataUri = FileToDataUri(trimmed);
var fileName = System.IO.Path.GetFileName(trimmed);
var safeName = System.Net.WebUtility.HtmlEncode(fileName);
if (dataUri != null)
{
sb.Append($"<div class=\"user-image-attachment\"><img src=\"{dataUri}\" alt=\"{System.Net.WebUtility.HtmlEncode(System.IO.Path.GetFileName(trimmed))}\" /><span class=\"user-image-name\">{System.Net.WebUtility.HtmlEncode(System.IO.Path.GetFileName(trimmed))}</span></div>");
sb.Append($"<div class=\"user-image-attachment\"><img src=\"{dataUri}\" alt=\"{safeName}\" /><span class=\"user-image-name\">📷 {safeName}</span></div>");
continue;
}
}
Expand Down
106 changes: 72 additions & 34 deletions Components/ChatMessageList.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
color: rgba(200,216,240,0.3);
text-align: center;
margin: auto;
font-size: 0.95rem;
font-size: var(--type-body);
}

/* === Compact mode (dashboard cards) === */
.chat-message-list.compact .chat-msg {
display: flex;
gap: 0.5rem;
font-size: 0.95rem;
font-size: var(--type-body);
line-height: 1.4;
}

.chat-message-list.compact .chat-msg-role {
font-weight: 600;
flex-shrink: 0;
font-size: 0.8rem;
font-size: var(--type-callout);
padding: 0.1rem 0.3rem;
border-radius: 3px;
align-self: flex-start;
Expand Down Expand Up @@ -142,7 +142,7 @@
}

.chat-message-list.full .chat-msg-time {
font-size: 0.75rem;
font-size: var(--type-subhead);
color: rgba(200,216,240,0.3);
margin-top: 0.25rem;
}
Expand All @@ -152,7 +152,7 @@
}

.chat-message-list.full .system-text {
font-size: 0.85rem;
font-size: var(--type-body);
color: #646e8a;
font-style: italic;
text-align: center;
Expand All @@ -171,7 +171,7 @@
background: none;
border: none;
color: rgba(168, 85, 247, 0.7);
font-size: 0.85rem;
font-size: var(--type-body);
cursor: pointer;
display: flex;
align-items: center;
Expand All @@ -181,7 +181,7 @@
}

::deep .reasoning-content {
font-size: 0.85rem;
font-size: var(--type-body);
color: #7a85a0;
white-space: pre-wrap;
line-height: 1.5;
Expand All @@ -198,7 +198,7 @@
margin: 0.25rem 1rem;
border-radius: 8px;
padding: 0.5rem 0.75rem;
font-size: 0.85rem;
font-size: var(--type-body);
border: 1px solid rgba(78,168,209,0.15);
background: rgba(78,168,209,0.03);
}
Expand All @@ -223,7 +223,7 @@
}

::deep .tool-result-content {
font-size: 0.8rem;
font-size: var(--type-callout);
color: #7a85a0;
white-space: pre-wrap;
word-break: break-word;
Expand All @@ -236,7 +236,7 @@
background: none;
border: none;
color: rgba(78, 168, 209, 0.7);
font-size: 0.8rem;
font-size: var(--type-callout);
cursor: pointer;
padding: 0;
}
Expand All @@ -255,7 +255,7 @@
gap: 0.5rem;
margin: 0.1rem 1rem;
padding: 0.25rem 0.4rem;
font-size: 0.82rem;
font-size: var(--type-callout);
cursor: pointer;
border-radius: 4px;
transition: background 0.15s;
Expand Down Expand Up @@ -312,13 +312,13 @@
overflow: hidden;
text-overflow: ellipsis;
font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
font-size: 0.75rem;
font-size: var(--type-subhead);
}

::deep .action-detail-hint {
margin-left: auto;
color: rgba(200,216,240,0.3);
font-size: 0.7rem;
font-size: var(--type-footnote);
white-space: nowrap;
flex-shrink: 0;
}
Expand All @@ -333,7 +333,7 @@
}

::deep .action-expanded-result pre {
font-size: 0.75rem;
font-size: var(--type-subhead);
color: rgba(200,216,240,0.5);
white-space: pre-wrap;
word-break: break-word;
Expand All @@ -359,7 +359,7 @@
border: 1px solid rgba(0, 195, 91, 0.3);
border-radius: 8px;
color: #00c35b;
font-size: 0.95rem;
font-size: var(--type-body);
}

::deep .error-card {
Expand All @@ -373,7 +373,7 @@
border: 1px solid rgba(248, 113, 113, 0.3);
border-radius: 8px;
color: #fca5a5;
font-size: 0.9rem;
font-size: var(--type-body);
}

::deep .markdown-body {
Expand All @@ -390,7 +390,7 @@
background: rgba(78,168,209,0.15);
padding: 0.15em 0.3em;
border-radius: 3px;
font-size: 0.9em;
font-size: 0.85em;
}

::deep .markdown-body pre {
Expand Down Expand Up @@ -434,31 +434,69 @@

/* === User image attachments inline === */
::deep .user-image-attachment {
display: inline-block;
margin: 0.3rem 0.2rem 0.3rem 0;
border-radius: 8px;
display: inline-flex;
align-items: center;
gap: 0.35rem;
margin: 0.2rem 0.3rem 0.2rem 0;
border-radius: 6px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.15);
background: rgba(0,0,0,0.2);
max-width: 300px;
vertical-align: top;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(0,0,0,0.25);
padding: 0.2rem 0.5rem 0.2rem 0.25rem;
vertical-align: middle;
cursor: pointer;
}

::deep .user-image-attachment img {
max-width: 300px;
max-height: 200px;
object-fit: contain;
display: block;
border-radius: 8px 8px 0 0;
width: 40px;
height: 40px;
object-fit: cover;
border-radius: 4px;
flex-shrink: 0;
}

::deep .user-image-name {
display: block;
font-size: 0.65rem;
color: rgba(255,255,255,0.4);
padding: 2px 6px 4px;
text-align: center;
font-size: var(--type-subhead);
color: rgba(200,216,240,0.6);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 160px;
}

/* === Mobile: tighter chat bubbles matching iOS chat conventions === */
@media (max-width: 640px) {
.chat-message-list.full .chat-msg {
padding: 0.4rem 0.5rem;
gap: 0.35rem;
}

.chat-message-list.full .chat-msg-text {
font-size: var(--type-callout);
line-height: 1.45;
}

.chat-message-list.full .chat-msg.user .chat-msg-content,
.chat-message-list.full .chat-msg.assistant .chat-msg-content {
padding: 0.5rem 0.75rem;
max-width: 85%;
}

.chat-message-list.full .chat-msg-time {
font-size: var(--type-caption1);
}

.chat-message-list.full .chat-msg.user .chat-msg-avatar {
width: 30px;
height: 30px;
}

.chat-message-list.full .chat-msg.assistant .chat-msg-avatar {
width: 40px;
height: 40px;
}

.chat-message-list.full .system-text {
font-size: var(--type-callout);
}
}
1 change: 1 addition & 0 deletions Components/Layout/MainLayout.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ main {
transform: translateX(-100%);
transition: transform 0.25s ease;
overflow-y: auto;
padding-top: env(safe-area-inset-top, 0px);
}

.flyout-panel.open {
Expand Down
4 changes: 2 additions & 2 deletions Components/Layout/NavMenu.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

.navbar-brand {
font-size: 1.1rem;
font-size: var(--type-title2);
}

.bi {
Expand All @@ -47,7 +47,7 @@
}

.nav-item {
font-size: 0.9rem;
font-size: var(--type-body);
padding-bottom: 0.5rem;
}

Expand Down
8 changes: 4 additions & 4 deletions Components/Layout/SessionSidebar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<button class="hamburger-btn" @onclick="ToggleFlyout">
</button>
<span class="mobile-title"><img src="autopilot_logo.png" width="18" height="18" style="vertical-align:middle;border-radius:4px" /> AutoPilot</span>
<span class="mobile-title"><img src="autopilot_text.png" height="22" style="vertical-align:middle" /></span>
<div class="mobile-tabs">
<a href="/" class="mobile-tab @(currentPage == "/" || currentPage == "/dashboard" ? "active" : "")" @onclick='() => { CopilotService.SaveUiState("/"); currentPage = "/"; }'>Dashboard</a>
<a href="/settings" class="mobile-tab @(currentPage == "/settings" ? "active" : "")" @onclick='() => { CopilotService.SaveUiState("/settings"); currentPage = "/settings"; }'>⚙️</a>
<a href="/settings" class="mobile-tab @(currentPage == "/settings" ? "active" : "")" @onclick='() => { CopilotService.SaveUiState("/settings"); currentPage = "/settings"; }'><svg style="vertical-align:middle" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg></a>
</div>
</div>
}
Expand Down Expand Up @@ -75,8 +75,8 @@ else
}
</p>
<div class="nav-tabs">
<a href="/" class="nav-tab @(currentPage == "/" || currentPage == "/dashboard" ? "active" : "")" @onclick='() => { CopilotService.SaveUiState("/"); currentPage = "/"; }'>Dashboard</a>
<a href="/settings" class="nav-tab @(currentPage == "/settings" ? "active" : "")" @onclick='() => { CopilotService.SaveUiState("/settings"); currentPage = "/settings"; }'>Settings</a>
<a href="/" class="nav-tab @(currentPage == "/" || currentPage == "/dashboard" ? "active" : "")" @onclick='() => { CopilotService.SaveUiState("/"); currentPage = "/"; }'><svg style="vertical-align:middle" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="9"/><rect x="14" y="3" width="7" height="5"/><rect x="14" y="12" width="7" height="9"/><rect x="3" y="16" width="7" height="5"/></svg> Dashboard</a>
<a href="/settings" class="nav-tab @(currentPage == "/settings" ? "active" : "")" @onclick='() => { CopilotService.SaveUiState("/settings"); currentPage = "/settings"; }'><svg style="vertical-align:middle" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg></a>
</div>
</div>

Expand Down
Loading