Skip to content

Commit

Permalink
fix: height issue on readonly mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Arif-un committed Jul 28, 2024
1 parent 02d76a3 commit 6121a0c
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/MixInput.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
.mix-tag-input {
overflow: auto;
width: 300px;
padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;
width: 18.75rem;
padding: .375rem;
border: .0625rem solid #ccc;
border-radius: .25rem;
font-size: medium;
-ms-overflow-style: none;
overflow-x: scroll;
scrollbar-width: none;
white-space: nowrap;
min-height: 20px;
}

.mix-tag-input::-webkit-scrollbar {
display: none;
}

.mix-tag-input:hover {
border: 1px solid #aaa;
border: .0625rem solid #aaa;
}

.mix-tag-input:focus {
border: 1px solid black;
outline: 2px solid black;
border: .0625rem solid black;
outline: .125rem solid black;
}

.mix-tag-input:empty::before {
Expand All @@ -32,31 +33,31 @@

.mtag {
display: inline-flex;
padding: 3px;
border: 1px solid #ccc;
border-radius: 3px;
padding: .1875rem;
border: .0625rem solid #ccc;
border-radius: .1875rem;
background: #f3f3f3;
margin-inline: 3px;
margin-inline: .1875rem;
}

.mtag:has(.mtag-delete-btn) {
padding-right: 3px;
padding-right: .1875rem;
}

.mtag-delete-btn {
display: inline-flex;
width: 16px;
height: 16px;
width: 1rem;
height: 1rem;
align-items: center;
justify-content: center;
padding: 3px;
padding: .1875rem;
border: none;
border-radius: 50%;
margin: 0;
margin-left: 4px;
margin-left: .25rem;
background: #dbdbdb;
cursor: pointer;
font-size: 18px;
font-size: 1.125rem;
line-height: 0.3;
}

Expand Down

0 comments on commit 6121a0c

Please sign in to comment.