fix: adjust layout in SessionSidebar component
This commit is contained in:
Generated
+1
-1
@@ -2847,7 +2847,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "openchamber-desktop"
|
||||
version = "1.0.8"
|
||||
version = "1.0.9"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"axum",
|
||||
|
||||
@@ -63,9 +63,15 @@ use tokio::{
|
||||
use tower_http::cors::CorsLayer;
|
||||
use window_state::{load_window_state, persist_window_state, WindowStateManager};
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
use window_vibrancy::{apply_vibrancy, NSVisualEffectMaterial};
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
static NEEDS_TRAFFIC_LIGHT_FIX: AtomicBool = AtomicBool::new(false);
|
||||
|
||||
const PROXY_BODY_LIMIT: usize = 32 * 1024 * 1024; // 32MB
|
||||
const CLIENT_RELOAD_DELAY_MS: u64 = 800;
|
||||
const MODELS_DEV_API_URL: &str = "https://models.dev/api.json";
|
||||
@@ -318,6 +324,7 @@ fn main() {
|
||||
}
|
||||
|
||||
if macos_version < 26 {
|
||||
NEEDS_TRAFFIC_LIGHT_FIX.store(true, Ordering::SeqCst);
|
||||
adjust_traffic_lights_position(&window, 17.0, 16.0);
|
||||
}
|
||||
}
|
||||
@@ -432,6 +439,12 @@ fn main() {
|
||||
size.height as f64,
|
||||
is_maximized,
|
||||
);
|
||||
#[cfg(target_os = "macos")]
|
||||
if NEEDS_TRAFFIC_LIGHT_FIX.load(Ordering::SeqCst) {
|
||||
if let Some(webview) = window.app_handle().get_webview_window("main") {
|
||||
adjust_traffic_lights_position(&webview, 17.0, 16.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
tauri::WindowEvent::CloseRequested { api, .. } => {
|
||||
api.prevent_close();
|
||||
|
||||
@@ -751,7 +751,7 @@ export const SessionSidebar: React.FC<SessionSidebarProps> = ({ mobileVariant =
|
||||
)}
|
||||
>
|
||||
{}
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<div className="flex items-center gap-2 min-w-0 flex-1">
|
||||
<span
|
||||
className={cn(
|
||||
'truncate typography-ui-label font-normal text-foreground',
|
||||
|
||||
Reference in New Issue
Block a user