diff --git a/openrouter/src/settings/wifi/qr.cpp b/openrouter/src/settings/wifi/qr.cpp index 816f832..c111a72 100644 --- a/openrouter/src/settings/wifi/qr.cpp +++ b/openrouter/src/settings/wifi/qr.cpp @@ -53,8 +53,6 @@ void get_wifi_qr(const httplib::Request &request, httplib::Response &response) { std::stringstream toqrstring; toqrstring << "WIFI:T:WPA;P:" << wifi_password << ";S:" << wifi_name << ";"; - std::cout << toqrstring.str() << std::endl; - qrcodegen::QrCode qr0 = qrcodegen::QrCode::encodeText(toqrstring.str().c_str(), qrcodegen::QrCode::Ecc::MEDIUM); std::string responsedata = toSvgString(qr0, 4); response.set_content(responsedata, SVG_TYPE); diff --git a/openrouter/src/types.hpp b/openrouter/src/types.hpp index fcf477f..c2f1856 100644 --- a/openrouter/src/types.hpp +++ b/openrouter/src/types.hpp @@ -7,6 +7,6 @@ #define STRING403 R"({"status":"403"})" #define JSON_TYPE "application/json" #define PLAIN_TEXT_TYPE "text/plain" -#define SVG_TYPE "image/svg" +#define SVG_TYPE "image/svg+xml" #endif // TYPES_H \ No newline at end of file diff --git a/openrouter/src/web/css/settings.css b/openrouter/src/web/css/settings.css index 6a7328c..82add74 100644 --- a/openrouter/src/web/css/settings.css +++ b/openrouter/src/web/css/settings.css @@ -210,6 +210,7 @@ tbody>tr>th { width: 0; height: 0; overflow: hidden; + transition: 0.3s; } #wifiqrimg.active { diff --git a/openrouter/src/web/index.html b/openrouter/src/web/index.html index 4b9e679..27fd8d8 100644 --- a/openrouter/src/web/index.html +++ b/openrouter/src/web/index.html @@ -153,10 +153,13 @@ -