@14ch/svelte-ui 0.0.60 → 0.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -560,6 +560,7 @@
|
|
|
560
560
|
class:textarea--full-width={fullWidth}
|
|
561
561
|
class:textarea--full-height={fullHeight}
|
|
562
562
|
class:textarea--auto-resize={autoResize}
|
|
563
|
+
class:textarea--max-height={maxHeight != null && !inline}
|
|
563
564
|
class:textarea--clearable={clearable}
|
|
564
565
|
class:textarea--rounded={rounded}
|
|
565
566
|
class:textarea--disabled={disabled}
|
|
@@ -795,6 +796,12 @@
|
|
|
795
796
|
.textarea--auto-resize {
|
|
796
797
|
textarea {
|
|
797
798
|
height: 100%;
|
|
799
|
+
/* maxHeight 未指定時は高さが常に中身と一致するため、丸め由来の 1px オーバーフローで
|
|
800
|
+
スクロールバーが出ないよう hidden にする。maxHeight 指定時のみ auto でスクロールさせる */
|
|
801
|
+
overflow-y: hidden;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
&.textarea--max-height textarea {
|
|
798
805
|
overflow-y: auto;
|
|
799
806
|
}
|
|
800
807
|
}
|