Skip to content

Commit 2820a02

Browse files
Merge pull request #1769 from nextcloud/update-counter-component
Update AppNavigationCounter styles
2 parents be63a9a + 6898f64 commit 2820a02

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/components/AppNavigationCounter/AppNavigationCounter.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
4949
export default {
5050
name: 'AppNavigationCounter',
51+
5152
props: {
5253
highlighted: {
5354
type: Boolean,
@@ -60,19 +61,22 @@ export default {
6061

6162
<style lang="scss" scoped>
6263
.app-navigation-entry__counter {
64+
font-size: calc(var(--default-font-size) * .8);
6365
overflow: hidden;
66+
width: fit-content;
6467
max-width: $clickable-area;
65-
margin: 4px;
66-
padding: 0 4px;
6768
text-align: center;
6869
text-overflow: ellipsis;
6970
line-height: 1em;
71+
padding: 4px 8px;
72+
border-radius: var(--border-radius-pill);
73+
background-color: var(--color-background-darker);
7074
7175
&--highlighted {
7276
padding: 4px 6px;
7377
color: var(--color-primary-text);
74-
border-radius: 10px;
7578
background-color: var(--color-primary);
7679
}
7780
}
81+
7882
</style>

0 commit comments

Comments
 (0)