+
+
+ {props.user.username}
+
+
+
diff --git a/src/components/Comments.scss b/src/components/Comments.scss
index 473ba58..ba8a10b 100644
--- a/src/components/Comments.scss
+++ b/src/components/Comments.scss
@@ -1,73 +1,61 @@
-.comments {
- .comment {
- display: flex;
- padding-bottom: 1em;
- margin-top: 1em;
- border-bottom: var(--line-width) solid var(--accent);
+.comment {
+ display: flex;
+ flex-direction: row;
- .avatar-container {
- flex-shrink: 0;
- width: 75px;
- height: 75px;
- margin-right: 1em;
- outline: 1px var(--gray-2) solid;
- background-color: rgb(230, 230, 230);
+ padding-bottom: 1em;
+ margin-top: 1em;
+ border-bottom: var(--line-width) solid var(--accent);
- svg {
- padding-top: 10%;
- width: 90%;
- height: 90%;
- color: rgb(250, 250, 250);
- }
+ width: 100%;
+ .avatar {
+ width: 75px;
+ height: 75px;
+ margin-right: 1em;
+ outline: 1px var(--gray-2) solid;
+ background-color: rgb(230, 230, 230);
+
+ svg {
+ padding-top: 10%;
+ width: 90%;
+ height: 90%;
+ color: rgb(250, 250, 250);
}
+ }
+
+ .content {
+ width: 90%;
+ .header {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
- .body {
.username {
font-weight: 500;
}
+
+ .stars .star {
+ cursor: auto;
+ }
}
- .acciones {
- display: flex;
- flex-direction: row;
-
- &>*{
- margin-right: 1em;
+ .body {
+ p {
+ white-space: pre-wrap;
}
+ }
- .opinions {
- display: flex;
- flex-direction: row;
+ .footer {
+ button {
+ border: none;
+ background-color: transparent;
+ cursor: pointer;
- button {
- border: none;
- background-color: transparent;
- cursor: pointer;
-
- span > *{
- display: inline;
- }
-
- &:hover, &.selected {
- color: var(--accent);
- }
-
- }
- }
-
- .stars {
- display: flex;
- justify-content: flex-start;
-
- .star {
- margin: inherit;
- width: 1.5em;
- height: 1.5em;
- cursor: auto;
+ span > * {
+ display: inline;
}
- .star.selected {
+ &:hover, &.selected {
color: var(--accent);
}
}