Also support multiline character names

This commit is contained in:
Carlos Fernandez 2025-12-18 16:44:10 -05:00
parent 0009357496
commit 165e09c9b2
3 changed files with 10 additions and 12 deletions

View file

@ -24,6 +24,7 @@
border: 1px solid transparent;
outline: 2px solid transparent;
transition: all 0.3s ease;
word-break: break-word;
&:hover {
outline: 2px solid light-dark(@dark, @golden);

View file

@ -34,19 +34,22 @@
.name-row {
display: flex;
gap: 5px;
align-items: end;
align-items: start;
justify-content: space-between;
padding: 0;
padding-top: 5px;
flex: 1;
input[type='text'] {
h1 {
display: flex;
flex: 1;
padding: 6px 0 0 0;
font-size: var(--font-size-32);
height: 42px;
text-align: start;
border: 1px solid transparent;
outline: 2px solid transparent;
transition: all 0.3s ease;
word-break: break-word;
&:hover {
outline: 2px solid light-dark(@dark, @golden);
@ -57,6 +60,8 @@
white-space: nowrap;
display: flex;
justify-content: end;
height: var(--font-size-32);
margin-top: 6px;
.label {
display: flex;

View file

@ -1,15 +1,7 @@
<header class="character-header-sheet">
<line-div></line-div>
<div class="name-row">
<h1 class='actor-name'>
<input
type='text'
name='name'
value='{{document.name}}'
placeholder='{{localize "DAGGERHEART.GENERAL.actorName"}}'
/>
</h1>
<h1 class="actor-name input" contenteditable="plaintext-only" data-property="name" placeholder="{{localize "DAGGERHEART.GENERAL.actorName"}}">{{source.name}}</h1>
<div class='level-div'>
<h3 class='label'>
{{#if (or document.system.needsCharacterSetup document.system.levelData.canLevelUp)}}