mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: matched titlebar style to figma
This commit is contained in:
1 parent
399aa4c03c
commit
92149b0f00
1 file changed
+12
-5
@@ -18,10 +18,11 @@ export default function TitleBar({
|
|||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
gap: 16,
|
justifyContent: 'center',
|
||||||
|
overflow: 'hidden',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div style={{ display: 'flex', gap: 8, flex: 1 }}>
|
<div style={{ display: 'flex', gap: 8 }}>
|
||||||
{image && (
|
{image && (
|
||||||
<img
|
<img
|
||||||
style={{ width: 64, height: 64, objectFit: 'contain' }}
|
style={{ width: 64, height: 64, objectFit: 'contain' }}
|
||||||
@@ -30,13 +31,18 @@ export default function TitleBar({
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{ display: 'flex', flexDirection: 'column', gap: 4, flex: 1 }}
|
style={{
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
flexDirection: 'column',
|
||||||
|
gap: 4,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
gap: 4,
|
gap: 4,
|
||||||
overflow: 'hidden',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@@ -45,6 +51,8 @@ export default function TitleBar({
|
|||||||
color: theme.colors.textHighContrast,
|
color: theme.colors.textHighContrast,
|
||||||
fontWeight: 900,
|
fontWeight: 900,
|
||||||
whiteSpace: 'nowrap',
|
whiteSpace: 'nowrap',
|
||||||
|
maxWidth: 240,
|
||||||
|
overflow: 'hidden',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{name}
|
{name}
|
||||||
@@ -52,7 +60,6 @@ export default function TitleBar({
|
|||||||
{nameDiscriminator && (
|
{nameDiscriminator && (
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
|
||||||
fontSize: 32,
|
fontSize: 32,
|
||||||
color: theme.colors.textLowContrast,
|
color: theme.colors.textLowContrast,
|
||||||
fontWeight: 900,
|
fontWeight: 900,
|
||||||
|
|||||||
Reference in new issue
Block a user