Skip to content

Commit

Permalink
fix: type icon sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Nov 14, 2022
1 parent 79cea0c commit 933c87d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/main/frontend/ui.css
Expand Up @@ -359,10 +359,10 @@ html.is-mobile {
}

.type-icon {
@apply text-xs text-center flex items-center justify-center rounded border mr-2 relative;
@apply text-base text-center flex items-center justify-center rounded border mr-2 relative;

width: 1.5rem;
height: 1.5rem;
width: 24px;
height: 24px;
flex-shrink: 0;
border-color: var(--ls-primary-background-color);
overflow: hidden;
Expand Down
Expand Up @@ -659,7 +659,7 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
</div>
<div className="tl-quick-search-options" ref={optionsWrapperRef}>
<Virtuoso
style={{ height: Math.min(Math.max(1, options.length), 12) * 36 }}
style={{ height: Math.min(Math.max(1, options.length), 12) * 40 }}
totalCount={options.length}
itemContent={index => {
const { actionIcon, onChosen, element } = options[index]
Expand Down
9 changes: 5 additions & 4 deletions tldraw/apps/tldraw-logseq/src/styles.css
Expand Up @@ -658,7 +658,8 @@ button.tl-select-input-trigger {
}

.tl-quick-search-option-row {
display: flex;
@apply flex items-center;

gap: 0.5em;

.breadcrumb {
Expand All @@ -667,7 +668,7 @@ button.tl-select-input-trigger {
}

.tl-quick-search-option-placeholder {
width: 20px;
width: 22px;
flex-shrink: 0;
}

Expand Down Expand Up @@ -729,8 +730,8 @@ button.tl-select-input-trigger {
@apply flex items-center justify-center rounded text-base;

flex-shrink: 0;
width: 20px;
height: 20px;
width: 24px;
height: 24px;
line-height: 1;
color: #fff;
background: rgba(0, 0, 0, 0.5);
Expand Down

0 comments on commit 933c87d

Please sign in to comment.