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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- **New features:**
- Table number of rows selector
- Use monospaced fonts for temporary password printout
- **Bug fixes**
- Add translations for empty announcements page

Expand Down
11 changes: 9 additions & 2 deletions src/components/PrintUsers/PrintUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const PrintUsers = forwardRef<ButtonProps>(({ ...restOfProps }, ref) => {
} else {
if (onlyTempPass) continue;
}
usersPasswords += `<td><b>${realname}</b><p/><b>${t('settings.columns.username')}:</b> ${username}<br/><b>${t('settings.columns.pw')}:</b> ${password}</td>`;
usersPasswords += `<td><b>${realname}</b><p/><b>${t('settings.columns.username')}:</b> <mark>${username}</mark><br/><b>${t('settings.columns.pw')}:</b> <mark>${password}</mark></td>`;
if (++i > columns) {
usersPasswords += '</tr>';
i = 1;
Expand All @@ -75,12 +75,13 @@ const PrintUsers = forwardRef<ButtonProps>(({ ...restOfProps }, ref) => {
<title>${t('settings.users.printTitle')}</title>
<style>
body {
font-family: Arial, sans-serif;
font-family: 'vision', 'Tahoma', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
font-size: 32px;
margin: 20px;
justify: center;
}
table {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
width: 1200px;
border-collapse: collapse;
margin-bottom: 20px;
Expand All @@ -98,6 +99,12 @@ const PrintUsers = forwardRef<ButtonProps>(({ ...restOfProps }, ref) => {
background-color: #f2f2f2;
font-weight: bold;
}
td b {
font-family: 'vision', 'Tahoma', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}
td mark {
background-color: rgba(0, 0, 0, 0.06);
}
.print-header {
display: flex;
justify-content: space-between;
Expand Down