Split message content into its own module

This is laying some groundwork for the rich text chatbar.
This commit is contained in:
James Graham
2025-06-29 12:43:48 +01:00
parent a1447ebd6f
commit f6e8491bf1
117 changed files with 122 additions and 104 deletions

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<defs id="defs3051">
<style
type="text/css"
id="current-color-scheme">
.ColorScheme-Text {
color:#4d4d4d;
}
</style>
</defs>
<path
style="color:#4d4d4d;fill:currentColor;fill-opacity:1;stroke:none" class="ColorScheme-Text"
d="m 20.794826,13.179229 q 0.0173,0.06921 0.02595,0.147079 0.0087,0.07787 0.0087,0.164383 0,0.164383 -0.02596,0.328765 -0.02595,0.164383 -0.06921,0.285507 l -0.5018,1.444837 q 0.147079,0.05191 0.272529,0.173035 0.12545,0.121124 0.12545,0.276855 v 0.917082 q 0,0.19899 -0.09517,0.337417 -0.09517,0.138428 -0.294158,0.138428 H 18.3983 q -0.173035,0.2509 -0.441238,0.402305 -0.268203,0.151405 -0.596969,0.151405 -0.328765,0 -0.601294,-0.151405 -0.27253,-0.151405 -0.436912,-0.402305 h -0.432586 q -0.173035,0.2509 -0.445564,0.402305 -0.272529,0.151405 -0.592643,0.151405 -0.328765,0 -0.601294,-0.151405 -0.272529,-0.151405 -0.445564,-0.402305 H 8.2152252 q -0.1730344,0.2509 -0.4412378,0.402305 -0.2682033,0.151405 -0.5969686,0.151405 -0.3287654,0 -0.5969687,-0.151405 -0.2682033,-0.151405 -0.4412377,-0.402305 h -0.432586 q -0.1730344,0.2509 -0.4455636,0.402305 -0.2725292,0.151405 -0.5926428,0.151405 -0.3287654,0 -0.6012946,-0.151405 Q 3.7941962,17.643517 3.6211618,17.392617 H 1.7264352 q -0.1989896,0 -0.3157878,-0.138428 -0.1167982,-0.138427 -0.1167982,-0.337417 v -0.90843 q 0,-0.19899 0.1470792,-0.333092 0.1470792,-0.134101 0.3374171,-0.151405 L 1.2765457,14.104963 q -0.043259,-0.121124 -0.064888,-0.276855 -0.021629,-0.155731 -0.021629,-0.311462 0,-0.09517 0.00865,-0.181686 0.00865,-0.08652 0.025955,-0.155731 L 2.0638522,9.3119102 Q 2.2455384,8.4986486 2.8944174,7.9016799 3.5432964,7.3047112 4.356558,7.3047112 h 7.84711 L 13.337043,6.1799876 11.892206,4.7264986 H 10.568493 V 3.9651473 q 0,-0.1989896 0.142753,-0.341743 Q 10.854,3.480651 11.052989,3.480651 h 3.028102 q 0.19899,0 0.341743,0.1427533 0.142754,0.1427534 0.142754,0.341743 v 0.7613513 h -1.237196 l 1.090116,1.0901168 q 0.14708,0.1643826 0.14708,0.3633722 0,0.2076413 -0.14708,0.3547205 l -0.770003,0.7700031 h 4.014398 q 0.813262,0 1.462141,0.5969687 0.648879,0.5969687 0.830565,1.4102303 z M 14.67806,9.225393 q 0,-0.1989895 -0.147079,-0.337417 Q 14.383902,8.7495484 14.17626,8.7495484 h -2.119671 q -0.19899,0 -0.350395,0.1384276 -0.151405,0.1384275 -0.151405,0.337417 v 3.322261 q 0,0.198989 0.151405,0.341742 0.151405,0.142754 0.350395,0.142754 h 2.119671 q 0.207642,0 0.354721,-0.142754 0.147079,-0.142753 0.147079,-0.341742 z m -4.222039,0 q 0,-0.1989895 -0.14708,-0.337417 Q 10.161862,8.7495484 9.9542209,8.7495484 H 7.8345495 q -0.1989896,0 -0.3503947,0.1384276 -0.1514051,0.1384275 -0.1514051,0.337417 v 3.322261 q 0,0.198989 0.1514051,0.341742 0.1514051,0.142754 0.3503947,0.142754 h 2.1196714 q 0.2076411,0 0.3547201,-0.142754 0.14708,-0.142753 0.14708,-0.341742 z m 8.279696,3.806757 q 0.181686,0 0.30281,-0.112473 0.121124,-0.112472 0.121124,-0.276855 0,-0.06056 -0.0087,-0.08652 L 18.554031,9.5714618 Q 18.467513,9.1561793 18.203636,8.9355604 17.939758,8.7149416 17.610993,8.7149416 h -1.332365 q -0.198989,0 -0.350394,0.1427533 -0.151406,0.1427534 -0.151406,0.341743 v 3.3482161 q 0,0.198989 0.151406,0.341742 0.151405,0.142754 0.350394,0.142754 z M 6.2339813,9.1994379 q 0,-0.1989896 -0.1470793,-0.341743 Q 5.9398228,8.7149416 5.7321815,8.7149416 H 4.4084684 q -0.3287654,0 -0.588317,0.2206188 Q 3.5605998,9.1561793 3.4740826,9.5714618 L 2.8684622,12.556305 q 0,0.02595 -0.00865,0.08652 0,0.164383 0.1211241,0.276855 0.121124,0.112473 0.3028102,0.112473 h 2.4484367 q 0.2076413,0 0.3547205,-0.142754 0.1470793,-0.142753 0.1470793,-0.341742 z"
id="path4749" />
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB