Skip to content

Commit

Permalink
Merge pull request #3458 from nextcloud/fix/styling
Browse files Browse the repository at this point in the history
refactoring of polls list with leaner flexbox
  • Loading branch information
dartcafe authored Apr 27, 2024
2 parents a30acc4 + 23f6537 commit 8a68952
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 289 deletions.
2 changes: 1 addition & 1 deletion src/js/assets/scss/transitions.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.transitions-active {
.list-enter-active,
.list-leave-active {
transition: all 2.5s ease;
transition: all 0.5s ease;
}

.list-enter,
Expand Down
15 changes: 9 additions & 6 deletions src/js/components/Base/modules/BadgeDiv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

<template>
<Component :is="tag" class="badge">
<div>
<slot name="icon" />
</div>
<slot name="icon" />
<span>
<slot />
</span>
Expand All @@ -44,18 +42,23 @@ export default {
</script>

<style lang="scss">

.badge {
display: flex;
align-items: center;
gap: 5px;
border-radius: var(--border-radius);
padding: 5px;
margin: 8px 4px;
text-align: center;
line-height: 1.1em;
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.9em;
overflow: hidden;

span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

h2 & {
font-size: 0.6em;
Expand Down
9 changes: 3 additions & 6 deletions src/js/components/Poll/PollInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,8 @@ export default {

<style lang="scss">
.poll-information {
padding: 8px;
> div {
opacity: 0.7;
margin: 8px 0 4px 0;
padding-left: 24px;
}
display: flex;
flex-direction: column;
row-gap: 8px;
}
</style>
Loading

0 comments on commit 8a68952

Please sign in to comment.