From cb3fb79cf536b42f96b83f8a94413624602f8905 Mon Sep 17 00:00:00 2001 From: Gregor <62483539+gin337@users.noreply.github.com> Date: Tue, 3 Sep 2024 22:43:38 +0200 Subject: [PATCH] fix --- .../MinecraftInventory/styles.module.css | 23 ++++++++++-------- .../MinecraftSlot/MinecraftSlot.tsx | 4 ++- .../MinecraftTextFormatter.tsx | 4 +-- static/fonts/mojangles/Mojangles.otf | Bin 0 -> 8124 bytes 4 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 static/fonts/mojangles/Mojangles.otf diff --git a/src/components/MinecraftInventory/styles.module.css b/src/components/MinecraftInventory/styles.module.css index f2f14ab..6b6f28f 100644 --- a/src/components/MinecraftInventory/styles.module.css +++ b/src/components/MinecraftInventory/styles.module.css @@ -1,8 +1,8 @@ /* src/components/MinecraftInventory.module.css */ @font-face { - font-family: "Minecraftia"; - src: url('/fonts/minecraftia/Minecraftia-Regular.ttf') format('truetype'); + font-family: "Mojangles"; + src: url('/fonts/mojangles/Mojangles.otf') format('truetype'); } .inventoryContainer { @@ -33,14 +33,14 @@ } .header { - font-family: 'Minecraftia', sans-serif; - font-size: 14px; + font-family: 'Mojangles', sans-serif; + font-size: 15px; color: #575757; /* Neue Schriftfarbe */ position: absolute; - top: 8px; + top: 5px; /* Mehr Abstand über dem Text */ - left: 12px; + left: 10px; /* Abstand vom linken Rand des Inventars */ line-height: 1; margin-bottom: 8px; @@ -113,7 +113,6 @@ /* Tooltip-Hintergrund */ color: #e7e7e7; /* Angepasste Textfarbe */ - padding: 10px 10px 0 10px; border-radius: 5px; border: 1px solid #300270; /* Tooltip-Rand */ @@ -121,10 +120,14 @@ /* Erlaubt Zeilenumbrüche im Tooltip */ box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); z-index: 10; - font-family: 'Minecraftia', sans-serif; + font-family: 'Mojangles', sans-serif; /* Verwendung der Minecraftia-Schriftart */ - font-size: 14px; - line-height: 1.5; + font-size: 16px; /* Zeilenhöhe für bessere Lesbarkeit */ width: max-content !important; + line-height: 1; } + +.tooltipcontentwrapper { + padding: 10px 10px 5px; +} \ No newline at end of file diff --git a/src/components/MinecraftSlot/MinecraftSlot.tsx b/src/components/MinecraftSlot/MinecraftSlot.tsx index efc5215..347452b 100644 --- a/src/components/MinecraftSlot/MinecraftSlot.tsx +++ b/src/components/MinecraftSlot/MinecraftSlot.tsx @@ -16,7 +16,9 @@ const MinecraftSlot: React.FC = (props) => { {props.tooltip && (
- +
+ +
)} diff --git a/src/components/MinecraftTextFormatter/MinecraftTextFormatter.tsx b/src/components/MinecraftTextFormatter/MinecraftTextFormatter.tsx index 41fbebd..4c6f07c 100644 --- a/src/components/MinecraftTextFormatter/MinecraftTextFormatter.tsx +++ b/src/components/MinecraftTextFormatter/MinecraftTextFormatter.tsx @@ -131,10 +131,10 @@ const MinecraftTextFormatter = ({ text }) => { formattedText.push( {part.split("\n").map((line, i) => ( - +
{line} {i < part.split("\n").length - 1 &&
} - +
))}
); diff --git a/static/fonts/mojangles/Mojangles.otf b/static/fonts/mojangles/Mojangles.otf new file mode 100644 index 0000000000000000000000000000000000000000..bc4d54786406392cc632b6a8381513350b01aba3 GIT binary patch literal 8124 zcmeHMeQaA-6+gD$drllXS(hg2AnP90hE{FK%SXG4Y8Cw=Tcv(DP1R+iz?{TQ+{AYJ zp3@{1pdtZ+MPnfG2cR;6#E=kW5)zuUQH1sfDr$$s222|Q#HtE)cxVC%`6G_Q@7#Oe z^K#b%-*;4O(N}Hq79q&j~;l0 zhyq0S{0!eMM@Fqd`^@1tP<02&Pfny0bHUT0Dp7C|br+_SiOKuFF#T<`UBKs|X;egB z*4~AD4WE0b)49dHFG8Zg96l}S#Nr(7jdQsLFC&vkCqMhr(Vr7_JxmliK9_ZJbcH4{ z|2NTYvL*ca*Y)VZ&vZQeZ=&#TQA1aseCDOvcXhvZ!RSP}g@R&)7-Mu+_Y>()q5d!0 z1y#?3~o99=cAnwnctJoGacGvHQj7C_u;zWcWU*`#@);& zz!t_z)_J_6K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