chore(frontend): overflow-x-auto for RulesList

This commit is contained in:
2025-12-01 18:48:22 +08:00
parent f0c5af470e
commit d783cf2591
5 changed files with 84 additions and 102 deletions

View File

@@ -18,7 +18,7 @@ enum ResponseBody {
Modified(Value),
}
pub async fn log_middleware(
pub async fn middleware(
State(state): State<Arc<AppState>>,
OriginalUri(uri): OriginalUri,
req: Request<axum::body::Body>,
@@ -39,7 +39,7 @@ pub async fn log_middleware(
let path = uri.path();
let (decrypted_request_log, method) = match str::from_utf8(&body_bytes)
let (decrypted_request_for_log, method) = match str::from_utf8(&body_bytes)
.map_err(anyhow::Error::from)
.and_then(|body| process_and_log_request(body, &state.key, &state.iv))
{
@@ -125,7 +125,7 @@ pub async fn log_middleware(
debug!(
"{}\nRequest:\n{}\nResponse:\n{}\n{}",
path,
serde_json::to_string_pretty(&decrypted_request_log).unwrap_or_default(),
serde_json::to_string_pretty(&decrypted_request_for_log).unwrap_or_default(),
decrypted_response_for_log,
"-".repeat(80),
);