feat(quick-pane): promote chats into full sessions
This commit is contained in:
@@ -334,7 +334,7 @@ fn quick_pane_height(height: f64) -> Result<f64, String> {
|
||||
if !height.is_finite() {
|
||||
return Err("Quick Pane height must be finite".to_owned());
|
||||
}
|
||||
Ok(height.clamp(240.0, 520.0))
|
||||
Ok(height.clamp(360.0, 520.0))
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
@@ -891,9 +891,9 @@ mod tests {
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(quick_pane.width, 640.0);
|
||||
assert_eq!(quick_pane.height, 240.0);
|
||||
assert_eq!(quick_pane.height, 360.0);
|
||||
assert_eq!(quick_pane.min_width, Some(520.0));
|
||||
assert_eq!(quick_pane.min_height, Some(240.0));
|
||||
assert_eq!(quick_pane.min_height, Some(360.0));
|
||||
assert_eq!(quick_pane.url.to_string(), "index.html");
|
||||
assert!(!quick_pane.visible);
|
||||
assert!(quick_pane.transparent);
|
||||
@@ -903,7 +903,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn quick_pane_height_stays_within_content_limit() {
|
||||
assert_eq!(quick_pane_height(200.0), Ok(240.0));
|
||||
assert_eq!(quick_pane_height(200.0), Ok(360.0));
|
||||
assert_eq!(quick_pane_height(420.0), Ok(420.0));
|
||||
assert_eq!(quick_pane_height(900.0), Ok(520.0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user