feat: improve mobile layout for Password Generator button
This commit is contained in:
@@ -75,7 +75,7 @@ const generatePasswords = () => {
|
||||
<div class="tool-panel">
|
||||
<div class="panel-header">
|
||||
<h2 class="tool-title">Bulk Passwords Generator</h2>
|
||||
<div class="action-area">
|
||||
<div class="action-area desktop-only">
|
||||
<button class="btn-neon generate-btn" @click="generatePasswords" v-ripple>
|
||||
Generate
|
||||
</button>
|
||||
@@ -131,6 +131,12 @@ const generatePasswords = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mobile-only" style="margin-top: 1rem; width: 100%;">
|
||||
<button class="btn-neon generate-btn" @click="generatePasswords" v-ripple style="width: 100%;">
|
||||
Generate
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="result-area" :style="{ height: textareaHeight }">
|
||||
<textarea
|
||||
class="tool-textarea"
|
||||
@@ -353,6 +359,14 @@ const generatePasswords = () => {
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.desktop-only {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.mobile-only {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.options-grid {
|
||||
flex-direction: column;
|
||||
@@ -372,5 +386,13 @@ const generatePasswords = () => {
|
||||
.generate-btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.desktop-only {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-only {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user