Skip to content

Commit

Permalink
ui: Fix widths of icons in Freestyle
Browse files Browse the repository at this point in the history
The border needs to be included in the container width.
  • Loading branch information
backspace committed Apr 11, 2024
1 parent 0fc8f68 commit ab13004
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/boxel-ui/addon/src/components/icon-button/usage.gts
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,19 @@ export default class IconButtonUsage extends Component {
margin: 0 10px 10px 0;
}
.icon {
box-sizing: border-box;
border: 1px solid transparent;
}
.hide-icon-overflow .icon {
overflow: hidden;
}
.show-borders .icon {
border: 1px solid var(--boxel-500);
width: calc(var(--boxel-icon-button-width) + 2px);
height: calc(var(--boxel-icon-button-height) + 2px);
}
</style>
</template>
Expand Down

0 comments on commit ab13004

Please sign in to comment.