Skip to content

Commit

Permalink
feat(ui): put EntryScreen to the rightmost side
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 27, 2022
1 parent f7263ef commit 98f8358
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/components/CalculatorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,12 @@ function clearAll() {
:value-to-display="expressionToDisplay"
/>
</div>
<EntryScreen
class="screen"
:value-to-display="entry"
/>
<div class="entry-screen-container">
<EntryScreen
class="screen"
:value-to-display="entry"
/>
</div>
</div>
<div class="common-buttons">
<div class="row">
Expand Down Expand Up @@ -231,13 +233,6 @@ function clearAll() {
</template>

<style lang="scss">
.entry-screen {
@apply text-4xl;
direction: rtl;
width: 100%;
}
button {
@apply m-[1px] px-2 py-1;
@apply border border-neutral-800 rounded-md;
Expand Down Expand Up @@ -266,9 +261,15 @@ function clearAll() {
right: 0;
}
.screen:nth-child(2) {
.entry-screen-container {
@apply flex justify-end;
@apply mt-8 mb-2;
}
.entry-screen-container .screen {
@apply text-4xl;
}
}
.common-buttons {
Expand Down

0 comments on commit 98f8358

Please sign in to comment.