Update StatePresenetr (#475)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2021-12-02 10:06:02 +01:00
committed by GitHub
parent bdd5429238
commit d7273d091e
4 changed files with 8 additions and 8 deletions
+2
View File
@@ -167,6 +167,8 @@ p:last-child { margin-block-end: 0; }
.sm-tool-icon {
display: flex;
align-items: center;
flex-wrap: nowrap;
white-space: nowrap;
color: var(--theme-caption-color);
cursor: pointer;
.icon {
@@ -34,5 +34,5 @@ function show () {
</script>
<div class="sm-tool-icon" on:click={show}>
<span class="icon"><IconFile size={'small'}/></span>{shortLabel}-{value.number}
<span class="icon"><IconFile size={'small'}/></span>&nbsp;{shortLabel}-{value.number}
</div>
@@ -21,19 +21,17 @@
</script>
<div class="state-container" style="background-color: {value.color}">
<div class="overflow-label state-container" style="background-color: {value.color}">
{value.title}
</div>
<style lang="scss">
.state-container {
display: flex;
justify-content: center;
align-items: center;
padding: .25rem .75rem;
width: fit-content;
padding: .25rem .5rem;
width: 6.25rem;
max-width: 6.25rem;
text-transform: uppercase;
font-weight: 500;
text-align: center;
letter-spacing: .5px;
font-size: .625rem;
color: #fff;