diff --git a/autoversion.h b/autoversion.h index e7705d3..cb6d6e3 100644 --- a/autoversion.h +++ b/autoversion.h @@ -20,6 +20,6 @@ #ifndef VERSION_H_ #define VERSION_H_ -#define VERSIONDATE "20250215.161703" +#define VERSIONDATE "20250216.100636" #endif diff --git a/signalbackup/htmlwrite.cc b/signalbackup/htmlwrite.cc index fd0de83..43a2678 100644 --- a/signalbackup/htmlwrite.cc +++ b/signalbackup/htmlwrite.cc @@ -229,6 +229,7 @@ bool SignalBackup::HTMLwriteStart(std::ofstream &file, long long int thread_reci font-family: Roboto, "Noto Sans", "Liberation Sans", OpenSans, sans-serif; padding-top: 30px; padding-bottom: 30px; + width: 90%; } .conversation-box { @@ -1225,7 +1226,7 @@ bool SignalBackup::HTMLwriteStart(std::ofstream &file, long long int thread_reci #thread-title { display: flex; align-items: center; - width: min-content; + width: auto; margin-left: auto; margin-right: auto; } @@ -1235,8 +1236,11 @@ bool SignalBackup::HTMLwriteStart(std::ofstream &file, long long int thread_reci font-size: x-large; font-family: Roboto, "Noto Sans", "Liberation Sans", OpenSans, sans-serif; padding: 0px; - margin: 0px; - width: 900px; + margin-top: 0px; + margin-bottom: 0px; + margin-left: auto; + margin-right: auto; + min-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; } diff --git a/signalbackup/signalbackup.h b/signalbackup/signalbackup.h index e194b9c..9d93937 100644 --- a/signalbackup/signalbackup.h +++ b/signalbackup/signalbackup.h @@ -59,8 +59,8 @@ // titles have been possible). // maybe this needs to be done smarter, making sure to only truncate at character // boundaries (not in the middle of multibyte ones... -#define MAXFILELENGTH 32 -#define WIN_LIMIT_FILENAME_LENGTH(str) if (str.size() > MAXFILELENGTH) str.resize(MAXFILELENGTH); +#define MAXFILELENGTH 54 +#define WIN_LIMIT_FILENAME_LENGTH(str) if (str.size() > MAXFILELENGTH) [[unlikely]] str.resize(MAXFILELENGTH); #else #define WIN_LIMIT_FILENAME_LENGTH(str) #endif