mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-04 23:04:47 +00:00
parent
bc18881eda
commit
4457cb7fb7
@ -91,8 +91,12 @@ p:first-child { margin-block-start: 0; } // First and last padding
|
|||||||
p:last-child { margin-block-end: 0; }
|
p:last-child { margin-block-end: 0; }
|
||||||
|
|
||||||
.p-inline {
|
.p-inline {
|
||||||
word-break: break-all;
|
|
||||||
line-height: 150%;
|
line-height: 150%;
|
||||||
|
a {
|
||||||
|
word-break: break-all;
|
||||||
|
word-break: break-word;
|
||||||
|
hyphens: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.inline-height2 {
|
.inline-height2 {
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
><slot /></div>
|
><slot /></div>
|
||||||
|
|
||||||
{#if !ignore && bigger && !fixed}
|
{#if !ignore && bigger && !fixed}
|
||||||
<div class="showMore" on:click={toggle}>
|
<div class="showMore" class:outter={cHeight > limit} on:click={toggle}>
|
||||||
<Label label={(cHeight > limit) ? ui.string.ShowLess : ui.string.ShowMore} />
|
<Label label={(cHeight > limit) ? ui.string.ShowLess : ui.string.ShowMore} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
@ -76,5 +76,10 @@
|
|||||||
border-radius: 2.5rem;
|
border-radius: 2.5rem;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
&.outter {
|
||||||
|
bottom: -2.75rem;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -111,13 +111,13 @@
|
|||||||
focus
|
focus
|
||||||
placeholder={tags.string.TagName}
|
placeholder={tags.string.TagName}
|
||||||
placeholderParam={{ word: keyTitle }}
|
placeholderParam={{ word: keyTitle }}
|
||||||
maxWidth="10rem"
|
maxWidth={'16rem'}
|
||||||
bind:value={title}
|
bind:value={title}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-sm mt-4">
|
<div class="text-sm mt-4">
|
||||||
<EditBox placeholder={tags.string.TagDescriptionPlaceholder} maxWidth="15rem" bind:value={description} />
|
<EditBox placeholder={tags.string.TagDescriptionPlaceholder} maxWidth={'17.75rem'} bind:value={description} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-sm mt-4">
|
<div class="text-sm mt-4">
|
||||||
|
@ -56,16 +56,16 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.tag-item {
|
.tag-item {
|
||||||
margin: 0.25rem;
|
margin: .25rem;
|
||||||
padding: 0.5rem;
|
padding: .5rem;
|
||||||
|
|
||||||
border-radius: 0.5rem;
|
border-radius: .5rem;
|
||||||
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 0.625rem;
|
font-size: .625rem;
|
||||||
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: #ffffff;
|
color: var(--theme-caption-color);
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -337,7 +337,7 @@
|
|||||||
font-size: 0.625rem;
|
font-size: 0.625rem;
|
||||||
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: #ffffff;
|
color: var(--theme-caption-color);
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -284,6 +284,7 @@ async function deleteRelatedDocuments (hierarchy: Hierarchy, object: Doc, client
|
|||||||
export function getMixinStyle (id: Ref<Class<Doc>>, selected: boolean): string {
|
export function getMixinStyle (id: Ref<Class<Doc>>, selected: boolean): string {
|
||||||
const color = getPlatformColorForText(id as string)
|
const color = getPlatformColorForText(id as string)
|
||||||
return `
|
return `
|
||||||
|
color: ${selected ? '#fff' : 'var(--theme-caption-color)'};
|
||||||
background: ${color + (selected ? 'ff' : '33')};
|
background: ${color + (selected ? 'ff' : '33')};
|
||||||
border: 1px solid ${color + (selected ? '0f' : '66')};
|
border: 1px solid ${color + (selected ? '0f' : '66')};
|
||||||
`
|
`
|
||||||
|
Loading…
Reference in New Issue
Block a user