55from aiogram .types import InlineKeyboardButton , InlineKeyboardMarkup
66
77from src .bot .fsm_data import FSMData
8+ from src .bot .shared_messages import MAX_WIDTH_FILLER
89from src .config_schema import Scanner
910
1011
@@ -64,17 +65,17 @@ def empty_inline_space_remainder(string):
6465 text = ""
6566 if data ["mode" ] == "manual" :
6667 text += (
67- html .bold ("📠 Manual Scan.\n " )
68+ html .bold (f "📠 Manual Scan.{ MAX_WIDTH_FILLER } \n " )
6869 + "Please place your document on the scanner glass.\n "
6970 + "You will be able to scan multiple pages one-by-one.\n \n "
7071 )
7172 elif data ["mode" ] == "auto" :
7273 text += (
73- html .bold ("📠 Auto Scan.\n " )
74+ html .bold (f "📠 Auto Scan.{ MAX_WIDTH_FILLER } \n " )
7475 + "Please place all your papers in the automatic feeder on top of the printer.\n \n "
7576 )
7677 else :
77- text += html .bold ("📠 Scan.\n " ) + "Not ready. Configure the options first"
78+ text += html .bold (f "📠 Scan.{ MAX_WIDTH_FILLER } \n " ) + "Not ready. Configure the options first\n \n "
7879
7980 if scanner :
8081 text += f"🖨 { scanner .display_name } \n "
@@ -98,11 +99,11 @@ def format_scanning_header(data: FSMData, scanner: Scanner | None) -> str:
9899
99100 text = ""
100101 if data ["mode" ] == "manual" :
101- text += html .bold ("📠 Manual Scan:\n " )
102+ text += html .bold (f "📠 Manual Scan:{ MAX_WIDTH_FILLER } \n " )
102103 elif data ["mode" ] == "auto" :
103- text += html .bold ("📠 Auto Scan:\n " )
104+ text += html .bold (f "📠 Auto Scan:{ MAX_WIDTH_FILLER } \n " )
104105 else :
105- text += html .bold ("📠 Scan:\n " )
106+ text += html .bold (f "📠 Scan:{ MAX_WIDTH_FILLER } \n " )
106107 text += (
107108 html .italic (f"⦁ Scanner: { display_scanner } \n " )
108109 + html .italic (f"⦁ Quality: { display_quality } \n " )
@@ -145,10 +146,9 @@ def format_scanning_paused_message(
145146) -> tuple [str , InlineKeyboardMarkup | None ]:
146147 caption = format_scanning_header (data , scanner )
147148 if is_finished :
148- caption += html .italic ("✅ Finished" )
149+ caption += html .italic ("✅ Finished\n " )
149150 else :
150- caption += html .italic ("✅ Completed" )
151- caption += " " * 100 + "‍"
151+ caption += html .italic ("✅ Completed\n " )
152152
153153 if is_finished :
154154 return caption , None
0 commit comments