Skip to content

Commit

Permalink
CSS tweaks for resizing conversation-header & title. Up maxfilenamele…
Browse files Browse the repository at this point in the history
…ngth for Windows
  • Loading branch information
bepaald committed Feb 16, 2025
1 parent 241c884 commit ebfc309
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion autoversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
#ifndef VERSION_H_
#define VERSION_H_

#define VERSIONDATE "20250215.161703"
#define VERSIONDATE "20250216.100636"

#endif
10 changes: 7 additions & 3 deletions signalbackup/htmlwrite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions signalbackup/signalbackup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebfc309

Please sign in to comment.