Skip to content

Commit

Permalink
fix(models-manager): add 'beta' badge to DWG and DXF tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed May 13, 2022
1 parent bc762dd commit 395100e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
11 changes: 11 additions & 0 deletions src/components/specific/models/models-manager/ModelsManager.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
height: 22px;
}

.beta-badge {
height: 18px;
// margin-left: 6px;
padding: 2px 7px;
border-radius: 9px;
font-size: 10px;
font-weight: bold;
background-color: var(--color-secondary);
color: var(--color-primary);
}

&__count {
min-width: 18px;
height: 18px;
Expand Down
11 changes: 7 additions & 4 deletions src/components/specific/models/models-manager/ModelsManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<span class="models-manager__tab__text">
{{ tab.label }}
</span>
<span v-if="tab.id === 'dwg' || tab.id === 'dxf'" class="beta-badge">
BETA
</span>
<span class="models-manager__tab__count" v-if="tab.models.length > 0">
{{ tab.models.length }}
</span>
Expand Down Expand Up @@ -77,28 +80,28 @@ import PDFManager from "./pdf-manager/PDFManager.vue";
const tabsDef = [
{
id: "tab0",
id: "ifc",
label: "IFC",
icon: "/static/ifc-file.svg",
modelTypes: [MODEL_TYPE.IFC],
component: "IFCManager"
},
{
id: "tab1",
id: "dwg",
label: "DWG",
icon: "/static/dwg-file.svg",
modelTypes: [MODEL_TYPE.DWG],
component: "DWGManager"
},
{
id: "tab2",
id: "dxf",
label: "DXF",
icon: "/static/dxf-file.svg",
modelTypes: [MODEL_TYPE.DXF],
component: "DWGManager"
},
{
id: "tab3",
id: "pdf",
label: "PDF",
icon: "/static/pdf-file.svg",
modelTypes: [MODEL_TYPE.PDF, MODEL_TYPE.META_BUILDING],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
width: 100%;
height: 100%;

&:deep() {
:deep(.bimdata-tabs) {
.bimdata-tabs__container__tab {
margin: 0 calc(var(--spacing-unit) * 3);
}
Expand Down

0 comments on commit 395100e

Please sign in to comment.