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
2 changes: 1 addition & 1 deletion crates/sshx-server/src/state/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl StorageMesh {
/// Notify a host that a session has been transferred.
pub async fn notify_transfer(&self, name: &str, host: &str) -> Result<()> {
let mut conn = self.redis.get().await?;
conn.publish(format!("transfers:{host}"), name).await?;
() = conn.publish(format!("transfers:{host}"), name).await?;
Ok(())
}

Expand Down
7 changes: 2 additions & 5 deletions src/lib/Session.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@

// The magic numbers "left" and "top" are used to approximately center the
// terminal at the time that it is first created.
//
// For a default 80x24 terminal, this is half of the width and height on a
// normal screen at default zoom.
const CONSTANT_OFFSET_LEFT = 300 * INITIAL_ZOOM;
const CONSTANT_OFFSET_TOP = 220 * INITIAL_ZOOM;
const CONSTANT_OFFSET_LEFT = 378;
const CONSTANT_OFFSET_TOP = 240;

const OFFSET_LEFT_CSS = `calc(50vw - ${CONSTANT_OFFSET_LEFT}px)`;
const OFFSET_TOP_CSS = `calc(50vh - ${CONSTANT_OFFSET_TOP}px)`;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/action/touchZoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function debounce<T extends (...args: any[]) => void>(fn: T, ms = 0) {

const MIN_ZOOM = 0.35;
const MAX_ZOOM = 2;
export const INITIAL_ZOOM = 0.9;
export const INITIAL_ZOOM = 1.0;

export class TouchZoom {
#node: HTMLElement;
Expand Down